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
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
Try using “ruby1.9” or “ruby1.9.1” instead of “ruby”.
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJOx5q5AAoJELh1XLHFkqha3psH/0F83WRvm0I5NmM35fYxhKqe
K92V65ZXqfrd+h2Bfs6qWbjfJoKqlY4YuBJeziFNLYCqerNuBbeTqzbqBQwCnjal
Z/bLa0Xa5P8YSOg2DkOiYzzk6K3jTE+SWRLTzoiKehbE8zatwPyTJfuIHghgnWcM
yW1SNCKBVJOYZww76h+rwsYqZlljeer6k5SGGlCUz0UCU0y+8p8h72VlFQC3YAJL
Gk2VWZ6Yu2tojnpomdbDCbl6IzaYvPv+2zJPIP1BeNtJKTNSk9TRG3yjjvYIJ61v
EOhyUuD2yap/zlDyu/8/2dHdinN9N4BIYmYDD/oG5MAo6g931m47TABh7SmQOCQ=
=FYue
-----END PGP SIGNATURE-----
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs