From: Tom Cloyd Date: 2008-12-13T12:20:51+09:00 Subject: Re: need quick check on my rubygems install procedure Tom Cloyd wrote: > I'm running Kubuntu Linux 8.10 - a fresh install. I'm setting up Ruby > now. > > I've done this before, but it takes very little for me to be in over > my head, so I need a quick review from someone who actually 'has a clue'. > > I have just installed Ruby 1.8.7 from the source available at the Ruby > website. No problems. I then downloaded from Rubyforge the > rubygems-1.3.1.tgz module, unpacked it, and launched its setup.rb > file. There was no console response other than a new command line. I > assume this is normal. > > Then....I issue a gem -v, and get back "1.2.0". > > I'm lost at this point. I thought I just installed v. 1.3.1. > > "which gem" produces "/usr/bin/gem". > > Looking there, I see both a "gem" and a "gem1.9". > > Oh boy. Two versions. "gem1.9 -v" also produces "1.2.0". Now I'm > really confused. And why "gem1.9"? What's THAT about? > > Being very suspicious at this point, I issue "which ruby1.9" and get > back "/usr/bin/ruby1.9". "ruby1.9 -v" produces "ruby 1.9.0 (2008-06-20 > revision 17482) [i486-linux]". This is just nuts. I didn't install > this. Where did it come from? > > If I'm going to use my new Ruby 1.8.7 and want it to use the latest > rubygems, which I presume IS somewhere in my filesystem, what do I > need to do? Anything at all? > > Can someone please untangle this for me, so I can just get back to > work with my ruby learning...? > > Thanks (very much!) in advance. > > Tom > > > An update - thought I'd try to install a gem, just to see the response. It wasn't good, and I don't know what it means... $ sudo gem install RedCloth [sudo] password for tomc: Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9 extconf.rb install RedCloth extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1:in `
' Gem files will remain installed in /var/lib/gems/1.9.0/gems/RedCloth-4.1.1 for inspection. Results logged to /var/lib/gems/1.9.0/gems/RedCloth-4.1.1/ext/redcloth_scan/gem_make.out tomc@tomc-desktop:~$ I send this along simply thinking it may give additional useful information. Tom