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

···

--
Posted via http://www.ruby-forum.com/.

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 Gomez <drdos.boy@gmail.com> wrote:

This might be helpful:

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

martin

···

On Fri, Aug 20, 2010 at 2:09 AM, Luis Gomez <drdos.boy@gmail.com> 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

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!

···

--
Posted via http://www.ruby-forum.com/.

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

martin

···

On Fri, Aug 20, 2010 at 2:20 AM, Luis Gomez <drdos.boy@gmail.com> 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 ?

done i used your link = guide thanks

···

--
Posted via http://www.ruby-forum.com/.