This help site has been deprecated. Please send your requests to support@rubygems.org
File not found: lib
I am running Leopard. I tried to run "sudo gem install rails" and all seems to work fine except at the end I get this "error": File not found: lib.
Mac Leopard 10.6.4
Gem 1.3.7
Rails: 3.0.0
Ruby 1.8.7
Discussions are closed to public comments.
If you need help with RubyGems.org please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Nick Quaranto on 31 Aug, 2010 03:24 AM
Could you provide a stack trace / console output along with the gem command you ran? Also, the output of
gem env
would be helpful too.2 Posted by web.gma on 31 Aug, 2010 01:13 PM
Thank you Nick for your reply,
I will post this tonight as I am at work right now; hope you can respond then. Again, thank you.
Gene.
3 Posted by web.gma on 01 Sep, 2010 01:07 AM
don't know how to do the trace you talked about. I'll look for some options.
4 Posted by kai on 01 Sep, 2010 04:17 PM
I face the same problem.
At first I had trouble with the zlib library:
http://www.ruby-forum.com/topic/71774#654760
and now this happens.
It doesnt look like a gems problem. Maybe a problem within the repository?
I googled a bit and found this:
http://www.ruby-forum.com/topic/208560#926150
It works out, but I end up having installed rails only:
5 Posted by kai on 01 Sep, 2010 04:26 PM
Looks like the code thing didnt work.
` cmd # gem install rails --debug
Exception NameError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- openssl
Exception LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- openssl
Exception NoMethodError at /usr/local/lib/ruby/1.8/rational.rb:78 - undefined method gcd for Rational(1, 2):Rational
Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem sources (> 0.0.1)
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception EOFError at /usr/local/lib/ruby/1.8/net/protocol.rb:135 - end of file reached
Exception EOFError at /usr/local/lib/ruby/1.8/net/protocol.rb:120 - end of file reached
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception IOError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:50 - closed stream
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /usr/local/lib/ruby/gems/1.8
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /usr/local/lib/ruby/gems/1.8/gems/rails-3.0.0
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /usr/local/lib/ruby/gems/1.8/gems/rails-3.0.0/bin
Successfully installed rails-3.0.0
1 gem installed
Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem rdoc (>= 0)
Exception Errno::ENOENT at /usr/local/lib/ruby/1.8/fileutils.rb:1202 - No such file or directory - /usr/local/lib/ruby/gems/1.8/doc/rails-3.0.0/ri
Exception Errno::ENOENT at /usr/local/lib/ruby/1.8/fileutils.rb:1202 - No such file or directory - /usr/local/lib/ruby/gems/1.8/doc/rails-3.0.0/ri
Exception Errno::ENOENT at /usr/local/lib/ruby/1.8/fileutils.rb:1297 - No such file or directory - /usr/local/lib/ruby/gems/1.8/doc/rails-3.0.0/ri
Installing ri documentation for rails-3.0.0...
Exception Errno::ENOENT at /usr/local/lib/ruby/1.8/rdoc/options.rb:576 - No such file or directory - lib
File not found: lib
`
6 Posted by web.gma on 01 Sep, 2010 11:32 PM
mymachine:~ me$ sudo gem install rails --debug
Password:
Exception `NameError' at /Library/Ruby/Site/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `NoMethodError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational
Exception `Gem::LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception `Gem::LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:779 - Could not find RubyGem sources (> 0.0.1)
Exception `IOError' at /Library/Ruby/Site/1.8/rubygems/format.rb:50 - closed stream
Exception `Errno::EEXIST' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /Library/Ruby/Gems/1.8
Exception `Errno::EEXIST' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /Library/Ruby/Gems/1.8/gems/rails-3.0.0
Exception `Errno::EEXIST' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /Library/Ruby/Gems/1.8/gems/rails-3.0.0/bin
Successfully installed rails-3.0.0
1 gem installed
Exception `Gem::LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:779 - Could not find RubyGem rdoc (>= 0)
Exception `Errno::ENOENT' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1202 - No such file or directory - /Library/Ruby/Gems/1.8/doc/rails-3.0.0/ri
Exception `Errno::ENOENT' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1202 - No such file or directory - /Library/Ruby/Gems/1.8/doc/rails-3.0.0/ri
Exception `Errno::ENOENT' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1297 - No such file or directory - /Library/Ruby/Gems/1.8/doc/rails-3.0.0/ri
Installing ri documentation for rails-3.0.0...
Exception `Errno::ENOENT' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/options.rb:576 - No such file or directory - lib
File not found: lib
7 Posted by kai on 02 Sep, 2010 12:33 AM
I checked the gem installation directory. And it looks like it installed most of the stuff:
/usr/local/lib/ruby/gems/1.8/gems# ls -l
the docs:
/usr/local/lib/ruby/gems/1.8/doc# ls -l
8 Posted by kai on 02 Sep, 2010 12:59 AM
I just created a new app,
I still have some trouble to start the mongrel server.
It requests a mysql2 gem file - whatever... and recommends me to run bundle_install.
Doesnt work. But I guess, I will get it work tomorrow.
I am still pretty new to rails.
The RI docs is like the manual function in linux environment?
So, if I dont use it, I wont need it.
Thx ;)
9 Posted by web.gma on 02 Sep, 2010 12:13 PM
@kai,
Why don't you start your own thread instead of hyjacking this one.
web.gma closed this discussion on 02 Sep, 2010 12:13 PM.
web.gma re-opened this discussion on 02 Sep, 2010 12:13 PM
10 Posted by kai on 02 Sep, 2010 12:56 PM
lol sorry,
I will start my own thread :)
good luck with your problem!
11 Posted by web.gma on 02 Sep, 2010 01:19 PM
@kai,
Silly boy, might as well keep going! My post is destroyed!!! :)
Support Staff 12 Posted by Nick Quaranto on 04 Sep, 2010 03:52 AM
Yeah I'm not really sure what's going on in here. Both of you, open up new threads please :)
Nick Quaranto closed this discussion on 04 Sep, 2010 03:52 AM.
Support Staff 13 Posted by Eric Hodel on 07 Sep, 2010 07:25 AM
File not found: lib is probably due to an outdated RDoc. Upgrade to a newer version and try again. I cannot reproduce this with a modern version.