From: Rick DeNatale Date: 2009-04-05T22:58:50+09:00 Subject: Re: How to get "irb1.8" using Ruby1.8 instead of Ruby1.9.1 ? --0016361e86c09028e80466cf2f44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Apr 5, 2009 at 9:53 AM, Rick DeNatale wrot= e: > On Sun, Apr 5, 2009 at 8:29 AM, I=F1aki Baz Castillo wrot= e: > > > El Domingo 05 Abril 2009, Ken Bloom escribi=F3: > > > Please tell me what the shebang in irb1.8 is, by running > > > > > > head /usr/bin/irb1.8 > > > > > > (On my system, it says #!/usr/bin/ruby1.8, so this whole situation > you're > > > in should be impossible.) > > > > Thanks. As I've explained in this thread, I had Ruby1.8 installed as DE= B > > package (so irb was a link to irb1.8). > > When compiling and installing Ruby1.9.1 from sources, it created > > /usr/bin/ruby > > and /usr/bin/irb. > > But it's strange since /usr/bin/irb was a softlink and after Ruby 1.9.1 > > install it remains being a softlink to irb1.8, but irb1.8 is now a copy > of > > the > > installed irb (Ruby 1.9.1). > > > The Debian packaging system relies on users not installing stuff in the > same > places that the packager does. /usr/bin is one of those places. > > When you are installing source on a Debian based system (which would > include > Ubuntu) you need to put it somewhere else., like /usr/local/bin, so inste= ad > of just > ./configure > make > sudo make install > > you need to do something like > > ./configure --prefix=3D/usr/local/ruby1.9 > make > sudo make install > > I think you need to somehow force the system to reinstall the ruby 1.8 > package(s), then install 1.9 from source to a safe place. > An afterthought, that configure command should probably be ./configure --prefix=3D/usr/local/ruby1.9 --program-suffix=3D1.9 the second option will turn the ruby, irb and other executables into ruby1.9, irb1.9 etc rather than just ruby, irb... --=20 Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --0016361e86c09028e80466cf2f44--