[Rubygems-developers] gems 0.9.0 on ruby 1.8.2 +ubuntu 6.10 : now way to install to $HOME

Alexander Mikhailian mikhailian at altern.org
Sun Nov 5 09:39:19 EST 2006

On Sun, 05 Nov 2006 00:07:43 -0500, Jim Weirich wrote:
> Rubygems was installed in /home/lowry, right?  Is that where the Ruby
> interpreter was installed?  If not, you have to let it know where to find
> its libraries.  You can do that by setting an environment variable
> (something like RUBY_PATH or RUBY_LIB or RUBY_DIR, perhaps without the
> underscore ... check the documentation).

OK, I did check the documentation, the variable is called RUBYLIB.

I set it up to RUBYLIB=/home/lowry/lib/ruby/:/home/lowry/lib/site_ruby/1.8

Now, I am able to run "gem" and it returns a help message, which is
already better than what was before.

However, "gem install rake" throws out the following:

$ gem install rake
/home/lowry/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- sources (LoadError)
        from /home/lowry/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /home/lowry/lib/site_ruby/1.8/rubygems/remote_installer.rb:462:in `sources'
        from /home/lowry/lib/site_ruby/1.8/rubygems/remote_installer.rb:472:in `source_index_hash'
        from /home/lowry/lib/site_ruby/1.8/rubygems/remote_installer.rb:436:in `install'
        from /home/lowry/lib/site_ruby/1.8/rubygems/gem_commands.rb:258:in `execute'
        from /home/lowry/lib/site_ruby/1.8/rubygems/gem_commands.rb:220:in `execute'
        from /home/lowry/lib/site_ruby/1.8/rubygems/command.rb:69:in `invoke'
        from /home/lowry/lib/site_ruby/1.8/rubygems/cmd_manager.rb:117:in `process_args'
        from /home/lowry/lib/site_ruby/1.8/rubygems/cmd_manager.rb:88:in `run'
        from /home/lowry/lib/site_ruby/1.8/rubygems/gem_runner.rb:29:in `run'
        from /home/lowry/bin/gem:23$ gem install rake

It looks like I am still unable to work with ruby gems.

More information about the Rubygems-developers mailing list