Tena_S
July 31, 2009, 11:18pm
1
Hi,
I am a Ruby newbie.
The version I am using is:
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
The following commands work (or I haven’t found anything
disagreeable so far):
irb
ruby
ri
But gem doesn’t work for me. Here’s what happens:
$ gem
/usr/local/bin/gem:8:in `require’: no such file to load – rubygems
(LoadError)
from /usr/local/bin/gem:8
I look at /usr/local/bin/gem and here are three lines, starting at line
8:
require ‘rubygems’
require ‘rubygems/gem_runner’
require ‘rubygems/exceptions’
So the complaint is that it doesn’t find these files.
I ran find, like this:
$ sudo find / -name rubygems*
Password:
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems/rubygems_version.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/test/rubygems
/usr/local/lib/ruby/1.9.1/rubygems
/usr/local/lib/ruby/1.9.1/rubygems/rubygems_version.rb
/usr/local/lib/ruby/1.9.1/rubygems.rb
$
I have reasons that I don’t want to use 1.9.1. I do want to use 1.8.7.
So… My question is where do I have to go to get what’s
necessary to run gems under 1.8.7?
Also, if there are some tips as to what I must do to get
it working, I would appreciate it very much.
Thank you in advance.
Regards,
Tena S.
[email protected]
Tena_S
August 1, 2009, 12:14am
2
I had trouble with gem on 64 bit linux systems in the past. I had to
resort
to building gem from source to get any resolution. The latest 32-bit
version of Ubuntu, 9.04, has gem version 1.3.1, which I believe resolves
this problem.
2009/7/31 Tena S. [email protected]
$ sudo find / -name rubygems*
I have reasons that I don’t want to use 1.9.1. I do want to use 1.8.7.
Tena S.
[email protected]
–
Regards,
Ken
Seek wisdom through disbelief
Tena_S
August 1, 2009, 1:18am
3
Hi Ken,
Thank you for your response.
I solved the problem in a different way. I went to
http://rubyonrails.org/download
and navigated to download a file rubygems-1.3.5.tgz.
I untar’ed and extracted the tar file. Then I typed:
ruby setup.rb
and it seems all is well (though I haven’t really
done enough testing yet).
In case I find a behavior that ruffles feather, I
will post what I find.
Regards,
Tena S.
[email protected]
Tena_S
August 1, 2009, 1:22am
4
On Jul 31, 2009, at 15:47, Tena S. wrote:
I solved the problem in a different way. I went to
http://rubyonrails.org/download
and navigated to download a file rubygems-1.3.5.tgz.
I untar’ed and extracted the tar file. Then I typed:
ruby setup.rb
and it seems all is well (though I haven’t really
done enough testing yet).
This is correct. You need to install RubyGems in each ruby
installation you wish to use.