mko
mko

Reputation: 22064

How to install ruby on Debian6

after following the install instruction here on my Debian system

sudo apt-get install ruby1.9.1

I still get the error

root@MyDebianVPS:/usr/local# ruby
bash: ruby: command not found

should I restart my system to make it work or I miss something?

$ su root
Password: 
root@MyDebianVPS:/home/yozloy# sudo apt-get install ruby1.9.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ruby1.9.1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
root@MyDebianVPS:/home/yozloy# ruby -v
bash: ruby: command not found
root@MyDebianVPS:/home/yozloy# 

Upvotes: 2

Views: 429

Answers (2)

DGM
DGM

Reputation: 26979

try ruby1.9 ... they may not have symlinked the command to ruby.

Upvotes: 1

Bob Martens
Bob Martens

Reputation: 13972

You are going to want to look to see if that is what the Debian package is actually called.

Try this:

sudo apt-get install ruby1.9

If that completes, awesome. Then try:

ruby -v

And report back what you have.

Upvotes: 1

Related Questions