Ruby 1.9 path

i have installed ruby 1.9.1 but… when i execute it … on shell
[email protected] ~ $ whereis ruby
ruby: /usr/bin/ruby1.9 /usr/lib/ruby

[email protected] ~ $ ruby
The program ‘ruby’ is currently not installed. You can install it by
typing:
sudo apt-get install ruby
[email protected] ~ $

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:

[email protected] ~ $ sudo /usr/bin/ruby1.9
^C/usr/bin/ruby1.9: Interrupt
[email protected]

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

[email protected] ~ $ sudo /usr/bin/ruby1.9
^C/usr/bin/ruby1.9: Interrupt
[email protected]

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
[email protected] ~ $ 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 .

[email protected] ~ $ ruby1.9 -e “puts ‘hello world’”
hello world
[email protected] ~ $

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

example = [email protected] ~ $ 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 .

[email protected] ~ $ ruby1.9 -e “puts ‘hello world’”
hello world
[email protected] ~ $

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs