Rails-3.0.0.beta3 install error on ri 'lib' ENOENT

Hi,

I was getting an odd error installing rails-3.0.0.beta3 on a fresh
Ubuntu 10.04 install. The same exact error was occurring on my Ubuntu
9.10 install, so I’m sure it isn’t something specific to the Ubuntu
version (nor beta for that matter).

This is the error:

mike@ubuntu:~/rubygems-1.3.6$ sudo gem1.9.1 install rails --pre
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
10 gems installed
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

I tried creating lib directory in the following location to see if it
would resolve the issue, and it seems to have worked:

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

Any idea why gem/rails/ri didn’t try to create the lib directory prior
to attempting the install?

Full debug/backtrace below.

mike@ubuntu:~/rubygems-1.3.6$ sudo gem1.9.1 install rails --pre –
debug --backtrace
Exception NameError' at /usr/local/lib/site_ruby/1.9.1/rubygems/ command_manager.rb:163 - uninitialized constant Gem::Commands::InstallCommand ExceptionLoadError’ at /usr/local/lib/site_ruby/1.9.1/rubygems/
gem_openssl.rb:40 - no such file to load – openssl
Exception `Gem::LoadError’ at /usr/local/lib/site_ruby/1.9.1/
rubygems.rb:777 - Could not find RubyGem test-unit (>= 0)

Exception `Gem::LoadError’ at /usr/local/lib/site_ruby/1.9.1/
rubygems.rb:777 - Could not find RubyGem sources (> 0.0.1)

Exception NoMethodError' at /usr/local/lib/site_ruby/1.9.1/rubygems/ package/tar_input.rb:49 - undefined methodreadpartial’ for
#Gem::Package::TarReader::Entry:0xbcdd054
Exception IOError' at /usr/local/lib/site_ruby/1.9.1/rubygems/ format.rb:50 - closed stream ExceptionErrno::EEXIST’ at /usr/lib/ruby/1.9.1/fileutils.rb:243 -
File exists - /usr/lib/ruby1.9.1/gems/1.9.1
Exception Errno::EEXIST' at /usr/lib/ruby/1.9.1/fileutils.rb:243 - File exists - /usr/lib/ruby1.9.1/gems/1.9.1/gems/rails-3.0.0.beta3 ExceptionErrno::EEXIST’ at /usr/lib/ruby/1.9.1/fileutils.rb:243 -
File exists - /usr/lib/ruby1.9.1/gems/1.9.1/gems/rails-3.0.0.beta3/bin
Successfully installed rails-3.0.0.beta3
1 gem installed
Exception `Gem::LoadError’ at /usr/local/lib/site_ruby/1.9.1/
rubygems.rb:777 - Could not find RubyGem rdoc (>= 0)

Exception Errno::ENOENT' at /usr/lib/ruby/1.9.1/fileutils.rb:1203 - No such file or directory - /usr/lib/ruby1.9.1/gems/1.9.1/doc/ rails-3.0.0.beta3/ri ExceptionErrno::ENOENT’ at /usr/lib/ruby/1.9.1/fileutils.rb:1203 -
No such file or directory - /usr/lib/ruby1.9.1/gems/1.9.1/doc/
rails-3.0.0.beta3/ri
Exception Errno::ENOENT' at /usr/lib/ruby/1.9.1/fileutils.rb:1298 - No such file or directory - /usr/lib/ruby1.9.1/gems/1.9.1/doc/ rails-3.0.0.beta3/ri Installing ri documentation for rails-3.0.0.beta3... ExceptionErrno::ENOENT’ at /usr/lib/ruby/1.9.1/rdoc/options.rb:632 -
No such file or directory - lib
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - lib
/usr/lib/ruby/1.9.1/rdoc/options.rb:632:in stat' /usr/lib/ruby/1.9.1/rdoc/options.rb:632:inblock in check_files’
/usr/lib/ruby/1.9.1/rdoc/options.rb:631:in each' /usr/lib/ruby/1.9.1/rdoc/options.rb:631:incheck_files’
/usr/lib/ruby/1.9.1/rdoc/options.rb:539:in parse' /usr/lib/ruby/1.9.1/rdoc/rdoc.rb:247:indocument’
/usr/local/lib/site_ruby/1.9.1/rubygems/doc_manager.rb:184:in
run_rdoc' /usr/local/lib/site_ruby/1.9.1/rubygems/doc_manager.rb:156:ininstall_ri’
/usr/local/lib/site_ruby/1.9.1/rubygems/doc_manager.rb:116:in
generate_ri' /usr/local/lib/site_ruby/1.9.1/rubygems/commands/install_command.rb: 145:inblock in execute’
/usr/local/lib/site_ruby/1.9.1/rubygems/commands/install_command.rb:
144:in each' /usr/local/lib/site_ruby/1.9.1/rubygems/commands/install_command.rb: 144:inexecute’
/usr/local/lib/site_ruby/1.9.1/rubygems/command.rb:258:in invoke' /usr/local/lib/site_ruby/1.9.1/rubygems/command_manager.rb:134:inprocess_args’
/usr/local/lib/site_ruby/1.9.1/rubygems/command_manager.rb:104:in
run' /usr/local/lib/site_ruby/1.9.1/rubygems/gem_runner.rb:58:inrun’
/usr/bin/gem1.9.1:21:in `’

Installing ri documentation for rails-3.0.0.beta3…
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - lib

I just run into the same problem. Any idea?

On Jul 17, 2010, at 8:05 AM, Fernando P. [email protected]
wrote:

Installing ri documentation for rails-3.0.0.beta3…
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - lib

I just run into the same problem. Any idea?

Fernando, have you tried installing Rails 3.0 Beta 4? If not, I would
recommended trying the latest.

Good luck,

-Conrad

Fernando P. wrote:

Installing ri documentation for rails-3.0.0.beta3…
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - lib

I just run into the same problem. Any idea?

adding --no-ri --no-rdoc did the trick.