Yesterday I compiled ruby 1.8.7, and have verified that it’s now
resident on my Kubuntu Linux 8.10 OS. All’s well, except that I’m in a
bit of a muddle with rubygems. It appears that something or other
(Philip Gawlowski suggested it might be Amorok) has installed Ruby 1.9
on my OS, and with it rubygems 1.2.0. But I want ruby 1.8.7 and rubygems
Right now, looking at /usr/local/lib/site_ruby, I see BOTH 1.8 and
1.9.0. Makes sense, I guess.
Yesterday I installed rubygems 1.3.1, and things went awry. Ignoring
that for now, I just redid the installation, and things went better,
indicating that somehow yesterday we had a moment or two of pilot error.
Here’s the first part of the console output for today install of
rubygems v. 1.3.1 -
tomc@tomc-desktop:~/Software archive/Rubygems/rubygems-1.3.1$ sudo ruby
[sudo] password for
mkdir -p /usr/local/lib/site_ruby/1.8/rbconfig
What I have now is this:
tomc@tomc-desktop:~$ which gem
tomc@tomc-desktop:~$ gem -v
tomc@tomc-desktop:~$ which gem1.8
tomc@tomc-desktop:~$ gem1.8 -v
When I tried, yesterday, to install the RedCloth gem using “gem
install…”, the install failed. Something about write permissions.
Today, I find that I can install RedCloth just fine, and and just did,
So…my question: It would appear that ruby 1.9, when it got installed,
by whatever program needed it, also installed rubygems, but not in a way
that I can get to, and in any case it isn’t the latest version, and
finally, it won’t let me use it anyway. I now have ruby 1.8.7, and
rubygems 1.3.1 installed, but I have NO confidence that ruby 1.8.7 will
access rubygems 1.3.1 should something it’s executing need it. I sure
hope I’m making sense here.
How in the world can I get this fixed? I badly need to get some gems
loaded and get to work again with ruby, and I’m close, but can’t close
Can someone tell me how to tell ruby 1.8.7 to go to the right rubygems
when it needs to? I’m sure this involves some environment variable, and
I’ll keep looking for this, but someone who know could sure help me by
simply pointing to it.
Thanks very much for any help you can offer.