From: "Iñaki Baz Castillo" Date: 2009-04-05T23:59:17+09:00 Subject: Re: How to get "irb1.8" using Ruby1.8 instead of Ruby1.9.1 ? El Domingo 05 Abril 2009, Igor Pirnovar escribió: > Iñaki Baz Castillo wrote: > > When compiling and installing Ruby1.9.1 from sources, it created > > /usr/bin/ruby > > and /usr/bin/irb. > > The above clearly shows that the compilation messed up the links in your > /usr/bin. Different versions of ruby and irb binaries must be stored as > /usr/bin/ruby1.8, /usr/bin/irb1.8 and /usr/bin/ruby1.9, /usr/bin/irb1.9. > On the other hand /usr/bin/ruby and /usr/bin/irb must be links and not > binaries. Your compilation removed the links and installed binaries in > their place. > > The solution to your problem is identification of the versions of the > binaries and name them correctly as explained above. Remove or move away > the old /usr/bin/ruby and /usr/bin/irb. Thanks, already solvedby reinstalling Ruby 1.9.1 from sources with options: ./configure --prefix=/usr/local/ --program-suffix=1.9 Then I get: /usr/local/bin# ll -rwxr-xr-x 1 root root 4,4K 2009-04-05 16:49 erb1.9* -rwxr-xr-x 1 root root 791 2009-04-05 16:49 gem1.9* -rwxr-xr-x 1 root root 323 2009-04-05 16:49 irb1.9* -rwxr-xr-x 1 root root 1,3K 2009-04-05 16:49 rake1.9* -rwxr-xr-x 1 root root 415 2009-04-05 16:49 rdoc1.9* -rwxr-xr-x 1 root root 78 2009-04-05 16:49 ri1.9* -rwxr-xr-x 1 root root 5,4M 2009-04-05 16:48 ruby1.9* -rwxr-xr-x 1 root root 252 2009-04-05 16:49 testrb1.9* And later I do symbolic links from /usr/bin to there, i.e: /usr/bin/ruby --> /usr/local/bin/ruby1.9 Thanks. -- Iñaki Baz Castillo