Install Error rails-3.0.0.beta3 => ERROR: While executing gem … (Errno::ENOENT) on Ubuntu

I am installing the Beta Version of Rails using the tutorial below:
http://grigio.org/how_install_rails_3_0_beta_ubuntu_linux_step_step

However I came across an error thats not listed in the above tutorial!

@rubygems-1.3.6$ sudo gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n sqlite3-ruby
Successfully installed tzinfo-0.3.22
Successfully installed builder-2.1.2
Successfully installed memcache-client-1.8.3
Successfully installed rack-1.1.0
Successfully installed rack-test-0.5.4
Successfully installed rack-mount-0.6.3
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.5
Successfully installed activesupport-2.3.8
Successfully installed mime-types-1.16
Successfully installed polyglot-0.3.1
Successfully installed treetop-1.4.8
Successfully installed mail-2.2.1
Successfully installed text-hyphen-1.0.0
Successfully installed text-format-1.0.0
Successfully installed thor-0.13.6
Successfully installed bundler-0.9.25
Successfully installed i18n-0.4.0
Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.5
19 gems installed
Installing ri documentation for tzinfo-0.3.22...
Installing ri documentation for builder-2.1.2...
Installing ri documentation for memcache-client-1.8.3...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for rack-test-0.5.4...
Installing ri documentation for rack-mount-0.6.3...
Installing ri documentation for abstract-1.0.0...
Installing ri documentation for erubis-2.6.5...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for mime-types-1.16...
Installing ri documentation for polyglot-0.3.1...
Installing ri documentation for treetop-1.4.8...
Installing ri documentation for mail-2.2.1...
Installing ri documentation for text-hyphen-1.0.0...
Installing ri documentation for text-format-1.0.0...
Installing ri documentation for thor-0.13.6...
Installing ri documentation for bundler-0.9.25...
Installing ri documentation for i18n-0.4.0...
Installing ri documentation for sqlite3-ruby-1.2.5...
Updating class cache with 89 classes...
Installing RDoc documentation for tzinfo-0.3.22...
Installing RDoc documentation for builder-2.1.2...
Installing RDoc documentation for memcache-client-1.8.3...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for rack-test-0.5.4...
Installing RDoc documentation for rack-mount-0.6.3...
Installing RDoc documentation for abstract-1.0.0...
Installing RDoc documentation for erubis-2.6.5...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for mime-types-1.16...
Installing RDoc documentation for polyglot-0.3.1...
Installing RDoc documentation for treetop-1.4.8...
Installing RDoc documentation for mail-2.2.1...
Installing RDoc documentation for text-hyphen-1.0.0...
Installing RDoc documentation for text-format-1.0.0...
Installing RDoc documentation for thor-0.13.6...
Installing RDoc documentation for bundler-0.9.25...
Installing RDoc documentation for i18n-0.4.0...
Installing RDoc documentation for sqlite3-ruby-1.2.5...
@rubygems-1.3.6$ sudo gem install rails --pre
Successfully installed i18n-0.3.7
Successfully installed activesupport-3.0.0.beta3
Successfully installed activemodel-3.0.0.beta3
Successfully installed actionpack-3.0.0.beta3
Successfully installed arel-0.3.3
Successfully installed activerecord-3.0.0.beta3
Successfully installed activeresource-3.0.0.beta3
Successfully installed actionmailer-3.0.0.beta3
Successfully installed rake-0.8.7
Successfully installed railties-3.0.0.beta3
Successfully installed rails-3.0.0.beta3
11 gems installed
Installing ri documentation for i18n-0.3.7...
Installing ri documentation for activesupport-3.0.0.beta3...
Installing ri documentation for activemodel-3.0.0.beta3...
Installing ri documentation for actionpack-3.0.0.beta3...
Installing ri documentation for arel-0.3.3...
Installing ri documentation for activerecord-3.0.0.beta3...
Installing ri documentation for activeresource-3.0.0.beta3...
Installing ri documentation for actionmailer-3.0.0.beta3...
Installing ri documentation for rake-0.8.7...
Installing ri documentation for railties-3.0.0.beta3...
Installing ri documentation for rails-3.0.0.beta3...
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory - lib

The simple solution to this is to create the lib directory.

sudo mkdir /usr/lib/ruby1.9.1/gems/1.9.1/gems/rails-3.0.0.beta3/lib

I have ruby 1.9.1 installed on my system. Please change the version (1.9.1 or -3.0.0.beta3) in the above to reflect your development environment.

About Pratik Sinha

Linux Nerd, Socialist, Atheist, Adventuristic, Nature Lover, Geeky.

3 comments

Leave a Reply to Branko Vukelic Cancel reply