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 Exception `LoadError'' 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 method `readpartial'' for #<Gem::Package::TarReader::Entry:0xbcdd054> Exception `IOError'' at /usr/local/lib/site_ruby/1.9.1/rubygems/ format.rb:50 - closed stream Exception `Errno::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 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/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 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 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... Exception `Errno::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:in `block 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:in `check_files'' /usr/lib/ruby/1.9.1/rdoc/options.rb:539:in `parse'' /usr/lib/ruby/1.9.1/rdoc/rdoc.rb:247:in `document'' /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:in `install_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:in `block 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:in `execute'' /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:in `process_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:in `run'' /usr/bin/gem1.9.1:21:in `<main>'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Perez
2010-Jul-17 15:05 UTC
Re: rails-3.0.0.beta3 install error on ri ''lib'' ENOENT
> Installing ri documentation for rails-3.0.0.beta3... > ERROR: While executing gem ... (Errno::ENOENT) > No such file or directory - libI just run into the same problem. Any idea? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Perez
2010-Jul-17 15:08 UTC
Re: rails-3.0.0.beta3 install error on ri ''lib'' ENOENT
Fernando Perez 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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Conrad Taylor
2010-Jul-17 17:47 UTC
Re: Re: rails-3.0.0.beta3 install error on ri ''lib'' ENOENT
On Jul 17, 2010, at 8:05 AM, Fernando Perez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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> -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.