ruby 1.9 path

L

Luis Gomez

i have installed ruby 1.9.1 but.. when i execute it ... on shell
drdos@drd0s-f00 ~ $ whereis ruby
ruby: /usr/bin/ruby1.9 /usr/lib/ruby


drdos@drd0s-f00 ~ $ ruby
The program 'ruby' is currently not installed. You can install it by
typing:
sudo apt-get install ruby
drdos@drd0s-f00 ~ $


and when i try to go for the path on the system i just get nothing i
have to go CTRL+C or the shell stays like that execution command for
ever:

drdos@drd0s-f00 ~ $ sudo /usr/bin/ruby1.9
^C/usr/bin/ruby1.9: Interrupt
drdos@drd0s-f00
 
M

Martin DeMello

and when i try to go for the path on the system i just get nothing i
have to go CTRL+C or the shell stays like that execution command for
ever:

That's just the ruby interpreter waiting for input
drdos@drd0s-f00 ~ $ sudo /usr/bin/ruby1.9
^C/usr/bin/ruby1.9: Interrupt
drdos@drd0s-f00

Try ruby1.9 -e "puts 'hello world'"

martin
 
L

Luis Gomez

Martin yes it did work .

drdos@drd0s-f00 ~ $ ruby1.9 -e "puts 'hello world'"
hello world
drdos@drd0s-f00 ~ $

how do i do to put back the ruby only on path ?

example = drdos@drd0s-f00 ~ $ ruby ruby.rb
hello world!
 
M

Martin DeMello

Martin yes it did work .

drdos@drd0s-f00 ~ $ ruby1.9 -e "puts 'hello world'"
hello world
drdos@drd0s-f00 ~ $

how do i do to put back the ruby only on path ?

If this is ubuntu, you should probably do it using
update-alternatives. Check out the other link I posted.

martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top