File not found: lib

web.gma's Avatar

web.gma

30 Aug, 2010 04:59 PM

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

  1. Support Staff 2 Posted by Nick Quaranto on 31 Aug, 2010 03:24 AM

    Nick Quaranto's Avatar

    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. 3 Posted by web.gma on 31 Aug, 2010 01:13 PM

    web.gma's Avatar

    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. 4 Posted by web.gma on 01 Sep, 2010 01:07 AM

    web.gma's Avatar

    don't know how to do the trace you talked about. I'll look for some options.

    mymachine:~ me$ gem env
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.3.7
      - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
      - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
      - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
      - EXECUTABLE DIRECTORY: /usr/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - universal-darwin-10
      - GEM PATHS:
         - /Library/Ruby/Gems/1.8
         - /Users/gangelo/.gem/ruby/1.8
         - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://rubygems.org/
    
    mymachine:~ me$ sudo gem install rails
    Password:
    Successfully installed rails-3.0.0
    1 gem installed
    Installing ri documentation for rails-3.0.0...
    File not found: lib
    
  4. 5 Posted by kai on 01 Sep, 2010 04:17 PM

    kai's Avatar

    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:

    cmd # gem install rails --no-ri --no-rdoc
    Successfully installed rails-3.0.0
    1 gem installed
    
    my environment: (OS: WinXP -> VirtualBox -> OS: Debian)
    RubyGems Environment:
    
    `  - RUBYGEMS VERSION: 1.3.7
      - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
      - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
      - RUBY EXECUTABLE: /usr/local/bin/ruby
      - EXECUTABLE DIRECTORY: /usr/local/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-linux
      - GEM PATHS:
         - /usr/local/lib/ruby/gems/1.8
         - /root/.gem/ruby/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://rubygems.org/`
    
    gem --backtrace: (I guess it doesnt work, since it's turned off)
    cmd # gem install rails --backtrace
    Successfully installed rails-3.0.0
    1 gem installed
    Installing ri documentation for rails-3.0.0...
    File not found: lib
    
    
    gem --debug:
    `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 `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
    ^CException `Interrupt' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/version.rb:270 - 
    ERROR:  Interrupted
    waterlinux:/home/chris/Desktop/rubygems/rubygems-1.3.7# 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 `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`
    
  5. 6 Posted by kai on 01 Sep, 2010 04:26 PM

    kai's Avatar

    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. 7 Posted by web.gma on 01 Sep, 2010 11:32 PM

    web.gma's Avatar

    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 ExceptionNoMethodError' 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 ExceptionGem::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 ExceptionErrno::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 ExceptionErrno::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 ExceptionErrno::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... ExceptionErrno::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. 8 Posted by kai on 02 Sep, 2010 12:33 AM

    kai's Avatar

    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

    
    drwxr-xr-x  4 root root 4096 31. Aug 03:15 abstract-1.0.0
    drwxr-xr-x  3 root root 4096 31. Aug 03:16 actionmailer-3.0.0
    drwxr-xr-x  3 root root 4096 31. Aug 03:15 actionpack-3.0.0
    drwxr-xr-x  3 root root 4096 31. Aug 03:15 activemodel-3.0.0
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 activerecord-3.0.0
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 activeresource-3.0.0
    drwxr-xr-x  3 root root 4096 31. Aug 03:15 activesupport-3.0.0
    drwxr-xr-x  4 root root 4096 31. Aug 03:15 arel-1.0.1
    drwxr-xr-x  6 root root 4096 31. Aug 03:15 builder-2.1.2
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 bundler-1.0.0
    drwxr-xr-x 10 root root 4096 31. Aug 03:15 erubis-2.6.6
    drwxr-xr-x  3 root root 4096 31. Aug 03:15 i18n-0.4.1
    drwxr-xr-x  3 root root 4096 31. Aug 03:16 mail-2.2.5
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 mime-types-1.16
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 polyglot-0.3.1
    drwxr-xr-x  7 root root 4096 31. Aug 03:15 rack-1.2.1
    drwxr-xr-x  3 root root 4096 31. Aug 03:15 rack-mount-0.6.12
    drwxr-xr-x  4 root root 4096 31. Aug 03:15 rack-test-0.5.4
    drwxr-xr-x  3 root root 4096 31. Aug 03:16 rails-3.0.0
    drwxr-xr-x  4 root root 4096 31. Aug 03:16 railties-3.0.0
    drwxr-xr-x  6 root root 4096 31. Aug 03:16 rake-0.8.7
    drwxr-xr-x  5 root root 4096 31. Aug 03:16 thor-0.14.0
    drwxr-xr-x  7 root root 4096 31. Aug 03:16 treetop-1.4.8
    drwxr-xr-x  4 root root 4096 31. Aug 03:15 tzinfo-0.3.23
    


    the docs:
    /usr/local/lib/ruby/gems/1.8/doc# ls -l

    
    drwxr-xr-x 3 root root 4096 31. Aug 03:18 actionmailer-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:16 actionpack-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 activerecord-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 activeresource-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 arel-1.0.1
    drwxr-xr-x 3 root root 4096 31. Aug 03:18 bundler-1.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:16 erubis-2.6.6
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 mail-2.2.5
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 mime-types-1.16
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 polyglot-0.3.1
    drwxr-xr-x 2 root root 4096 31. Aug 03:18 rails-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:18 railties-3.0.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:18 rake-0.8.7
    drwxr-xr-x 4 root root 4096  1. Sep 17:54 rubygems-1.3.7
    drwxr-xr-x 3 root root 4096 31. Aug 03:18 thor-0.14.0
    drwxr-xr-x 3 root root 4096 31. Aug 03:17 treetop-1.4.8
    
  8. 9 Posted by kai on 02 Sep, 2010 12:59 AM

    kai's Avatar

    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. 10 Posted by web.gma on 02 Sep, 2010 12:13 PM

    web.gma's Avatar

    @kai,

    Why don't you start your own thread instead of hyjacking this one.

  10. web.gma closed this discussion on 02 Sep, 2010 12:13 PM.

  11. web.gma re-opened this discussion on 02 Sep, 2010 12:13 PM

  12. 11 Posted by kai on 02 Sep, 2010 12:56 PM

    kai's Avatar

    lol sorry,
    I will start my own thread :)
    good luck with your problem!

  13. 12 Posted by web.gma on 02 Sep, 2010 01:19 PM

    web.gma's Avatar

    @kai,

    Silly boy, might as well keep going! My post is destroyed!!! :)

  14. Support Staff 13 Posted by Nick Quaranto on 04 Sep, 2010 03:52 AM

    Nick Quaranto's Avatar

    Yeah I'm not really sure what's going on in here. Both of you, open up new threads please :)

  15. Nick Quaranto closed this discussion on 04 Sep, 2010 03:52 AM.

  16. Support Staff 14 Posted by Eric Hodel on 07 Sep, 2010 07:25 AM

    Eric Hodel's Avatar

    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.

Comments are currently closed for this discussion. You can start a new one.

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