Error of setting up Ruby1.9.2 on Debian6

Hey Everyone,

I'm a newbie to Ruby, I use

apt-get install ruby1.9.1

this install process complete without errors, but I can't I got command not found error, when I type ruby -v

Thanks

Markson

Try using "ruby1.9" or "ruby1.9.1" instead of "ruby".

Vale,
Marvin

···

On 19.11.2011 12:29, yozloy wrote:

Hey Everyone,

I'm a newbie to Ruby, I use

apt-get install ruby1.9.1

this install process complete without errors, but I can't I got
command not found error, when I type ruby -v

Hi,

yozloy escreveu isso aí:

Hey Everyone,

I'm a newbie to Ruby, I use

apt-get install ruby1.9.1

this install process complete without errors, but I can't I got
command not found error, when I type ruby -v

On Debian 6 the default ruby is 1.8.7, so ruby1.8 is the only package
that will give you "ruby" without a prefix.

This was changed for Debian 7, and both 1.8 and 1.9.* can provide "ruby"
by using the alternatives system. This is being documented in
Ruby - Debian Wiki (but note that documentation is work in
progress).

You can workaround that on Debian 6 by running the following command as
root:

for program in /usr/bin/*1.9.1; do ln -s $program "$(echo $program | sed 's/bin/local\/bin/; s/1.9.1//')" ; done

This will create symbolic links for all *1.9.1 programs into /usr/local/bin,
without the 1.9.1 prefix. This way you will have "ruby", "gem", etc.

···

--
Antonio Terceiro <terceiro@softwarelivre.org>
http://softwarelivre.org/terceiro