Rubygems on Debian: Gems won't load (LoadError)

Posted by daswerth on Stack Overflow See other posts from Stack Overflow or by daswerth
Published on 2010-05-12T01:35:03Z Indexed on 2010/05/12 1:44 UTC
Read the original article Hit count: 340

Filed under:
|
|

I've installed the development version of Crunchbang, a linux distro based off Debian. I got Ruby and Rubygems installed, but I can't get the gems I've installed to load. Here is a command-line session:

$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux]

$ gem env
RubyGems Environment:  
  - RUBYGEMS VERSION: 1.3.6  
  - RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i486-linux]  
  - INSTALLATION DIRECTORY: /usr/lib/ruby1.9.1/gems/1.9.1  
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1  
  - EXECUTABLE DIRECTORY: /usr/bin  
  - RUBYGEMS PLATFORMS:  
    - ruby  
    - x86-linux  
  - GEM PATHS:  
     - /usr/lib/ruby1.9.1/gems/1.9.1  
     - /home/corey/.gem/ruby/1.9.1  
  - GEM CONFIGURATION:  
     - :update_sources => true  
     - :verbose => true  
     - :benchmark => false  
     - :backtrace => false  
     - :bulk_threshold => 1000  
  - REMOTE SOURCES:  
     - http://rubygems.org/  

$ echo $PATH
/home/corey/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/corey/.gem/ruby/1.9.1:/usr/lib/ruby1.9.1/gems/1.9.1  

$ gem list -d nokogiri

`*** LOCAL GEMS ***`  

nokogiri (1.4.1)  
    Authors: Aaron Patterson, Mike Dalessio  
    Rubyforge: http://rubyforge.org/projects/nokogiri  
    Homepage: http://nokogiri.org  
    Installed at: /usr/lib/ruby1.9.1/gems/1.9.1  
    Nokogiri (?) is an HTML, XML, SAX, and Reader parser  

$ ruby -r rubygems -e "require 'nokogiri'"
-e:1:in `require': no such file to load -- nokogiri (LoadError)  

from -e:1:in `'

I've encountered similar problems on Ubuntu before, but they were easy to fix. I can't figure out what's wrong in this particular case, and Google didn't seem to know either. Any help would be greatly appreciated!

By the way... this is my first submission to stackoverflow. I hope this question is relevant. :)

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubygems