From: Antonio Terceiro Date: 2011-11-22T02:55:17+09:00 Subject: Re: error of setting up Ruby1.9.2 on Debian6 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, yozloy escreveu isso a=ED: > Hey Everyone, >=20 > I'm a newbie to Ruby, I use >=20 > apt-get install ruby1.9.1 >=20 > 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 http://wiki.debian.org/Ruby (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. --=20 Antonio Terceiro http://softwarelivre.org/terceiro --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk7KkFIACgkQDOM8kQ+cso9ZbQCgigDDlLOJt8yFRw3scU0ZS4+J 7RQAnjtItFPyNwU9FhNJjzyqm0m/56gC =vI/s -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+--