I wanted to install ruby 1.9.1 instead of the older version so I ran this command on Ubuntu:
sudo apt-get install ruby1.9.1-full
After the install was complete, I got the following error(s):
WARNING: Installing to ~/.gem since /var/lib/gems/1.9.1 and
/var/lib/gems/1.9.1/bin aren’t both writable.
WARNING: You don’t have /home/brooks/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
When I run “ruby -v” (without the quotes) I get the following response:
bash: /usr/bin/ruby: No such file or directory
So my questions are: 1) Why is it so difficult to install ruby, 2) How can I resolve this problem?
Thank you for your help!
Br
Those aren’t errors. They’re warnings issued by rubygems. If you want to avoid them run rubygems with
sudoor add add/home/brooks/.gem/ruby/1.9.1/binto your PATH variable. Or if you don’t care that you can’t run executables installed by gems without specifying the whole path, just ignore them.Try
ruby1.9.1 -v