tag:help.rubygems.org,2010-01-19:/discussions/problems/304-file-not-found-libRubyGems.org: Discussion 2011-04-07T20:59:32Ztag:help.rubygems.org,2010-01-19:Comment/27478352010-08-31T03:24:15Z2010-08-31T03:24:15ZFile not found: lib<div><p>Could you provide a stack trace / console output along with the gem command you ran? Also, the output of <code>gem env</code> would be helpful too.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/27478352010-08-31T13:13:54Z2010-08-31T13:13:55ZFile not found: lib<div><p>Thank you Nick for your reply,</p>
<p>I will post this tonight as I am at work right now; hope you can respond then. Again, thank you.</p>
<p>Gene.</p></div>web.gmatag:help.rubygems.org,2010-01-19:Comment/27478352010-09-01T01:07:51Z2010-09-04T03:51:27ZFile not found: lib<div><p>don't know how to do the trace you talked about. I'll look for some options.</p>
<pre><code>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</code>
</pre></div>web.gmatag:help.rubygems.org,2010-01-19:Comment/27478352010-09-01T16:17:44Z2010-09-04T03:51:48ZFile not found: lib<div><p>I face the same problem.<br />
At first I had trouble with the zlib library:<br />
<a href="http://www.ruby-forum.com/topic/71774#654760">http://www.ruby-forum.com/topic/71774#654760</a></p>
<p>and now this happens.<br />
It doesnt look like a gems problem. Maybe a problem within the repository?<br />
I googled a bit and found this:<br />
<a href="http://www.ruby-forum.com/topic/208560#926150">http://www.ruby-forum.com/topic/208560#926150</a></p>
<p>It works out, but I end up having installed rails only:</p>
<pre><code>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`</code>
</pre></div>kaitag:help.rubygems.org,2010-01-19:Comment/27478352010-09-01T16:26:50Z2010-09-01T16:26:51ZFile not found: lib<div><p>Looks like the code thing didnt work.</p>
<p>`
cmd # gem install rails --debug<br />
Exception NameError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand<br />
Exception LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- openssl<br />
Exception LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- openssl<br />
Exception NoMethodError at /usr/local/lib/ruby/1.8/rational.rb:78 - undefined method gcd for Rational(1, 2):Rational<br />
Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)</p>
<p>Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem sources (> 0.0.1)</p>
<p>Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80<br />
Exception EOFError at /usr/local/lib/ruby/1.8/net/protocol.rb:135 - end of file reached<br />
Exception EOFError at /usr/local/lib/ruby/1.8/net/protocol.rb:120 - end of file reached<br />
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80<br />
Exception IOError at /usr/local/lib/ruby/site_ruby/1.8/rubygems/format.rb:50 - closed stream<br />
Exception Errno::EEXIST at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - /usr/local/lib/ruby/gems/1.8<br />
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<br />
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<br />
Successfully installed rails-3.0.0<br />
1 gem installed<br />
Exception Gem::LoadError at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:779 - Could not find RubyGem rdoc (>= 0)</p>
<p>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<br />
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<br />
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<br />
Installing ri documentation for rails-3.0.0...<br />
Exception Errno::ENOENT at /usr/local/lib/ruby/1.8/rdoc/options.rb:576 - No such file or directory - lib<br />
File not found: lib<br />
`</p></div>kaitag:help.rubygems.org,2010-01-19:Comment/27478352010-09-01T23:32:12Z2010-09-01T23:32:12ZFile not found: libweb.gmatag:help.rubygems.org,2010-01-19:Comment/27478352010-09-02T00:33:54Z2010-09-02T00:33:55ZFile not found: lib<div><p>I checked the gem installation directory. And it looks like it installed most of the stuff:<br />
</p>
<br />
<p><em>/usr/local/lib/ruby/gems/1.8/gems# ls -l</em></p>
<pre><code>
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</code>
</pre>
<br /><br />
<p>the <strong>docs</strong>:<br />
<em>/usr/local/lib/ruby/gems/1.8/doc# ls -l</em></p>
<pre><code>
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</code>
</pre></div>kaitag:help.rubygems.org,2010-01-19:Comment/27478352010-09-02T00:59:48Z2010-09-02T00:59:48ZFile not found: lib<div><p>I just created a new app,<br />
I still have some trouble to start the mongrel server.<br />
It requests a <strong>mysql2 gem file</strong> - whatever... and recommends me to run <strong>bundle_install</strong>.<br />
Doesnt work. But I guess, I will get it work tomorrow.</p>
<p>I am still pretty new to rails.<br />
The RI docs is like the manual function in linux environment?<br />
So, if I dont use it, I wont need it.</p>
<p>Thx ;)<br />
</p></div>kaitag:help.rubygems.org,2010-01-19:Comment/27478352010-09-02T12:13:01Z2010-09-02T12:13:01ZFile not found: lib<div><p>@kai,</p>
<p>Why don't you start your own thread instead of hyjacking this one.</p></div>web.gmatag:help.rubygems.org,2010-01-19:Comment/27478352010-09-02T12:56:52Z2010-09-02T12:56:53ZFile not found: lib<div><p>lol sorry,<br />
I will start my own thread :)<br />
good luck with your problem!</p></div>kaitag:help.rubygems.org,2010-01-19:Comment/27478352010-09-02T13:19:12Z2010-09-02T13:19:12ZFile not found: lib<div><p>@kai,</p>
<p>Silly boy, might as well keep going! My post is destroyed!!! :)</p></div>web.gmatag:help.rubygems.org,2010-01-19:Comment/27478352010-09-04T03:52:50Z2010-09-04T03:52:50ZFile not found: lib<div><p>Yeah I'm not really sure what's going on in here. Both of you, open up new threads please :)</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/27478352010-09-07T07:25:12Z2010-09-07T07:25:12ZFile not found: lib<div><p>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.</p></div>Eric Hodel