Ruby 1.9 path

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

On Fri, Aug 20, 2010 at 2:09 AM, Luis G. [email protected] wrote:

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

On Fri, Aug 20, 2010 at 2:09 AM, Luis G. [email protected] wrote:

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

This might be helpful:

http://michalf.me/blog:make-ruby-1-9-default-on-ubuntu-9-10-karmic-koala

martin

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!

done i used your link = guide thanks

On Fri, Aug 20, 2010 at 2:20 AM, Luis G. [email protected] wrote:

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