Trouble with rvm install of ruby

Hi,

This noob is trying to install ruby through rvm and encountering
difficulty.

If I run ‘rvm install ruby-1.8.7-p352’ as user I get
‘Failed to create the file ruby-1.8.7-p352.tar.bz2: Permission denied’.

If I run it as sudo, it installs, but when I try ‘rvm use 1.8.7’ I get
‘ruby ruby-1.8.7-p357 is not installed.’

I’m confused. Anyone have any suggestions?

Many thanks.

Michael Oliphant wrote in post #1042644:

Hi,

This noob is trying to install ruby through rvm and encountering
difficulty.

If I run ‘rvm install ruby-1.8.7-p352’ as user I get
‘Failed to create the file ruby-1.8.7-p352.tar.bz2: Permission denied’.

If I run it as sudo, it installs, but when I try ‘rvm use 1.8.7’ I get
‘ruby ruby-1.8.7-p357 is not installed.’

I’m confused. Anyone have any suggestions?

Did you install RVM with sudo? then you need to read RVM documentation
about that:

https://rvm.beginrescueend.com/rvm/install/

If you missed the red part that says:

“Multi-User installations - For server administrators - For an
installation usable by all users on the system - Please note that
Single-User supercedes Multi-User. This also used to be called the
System-Wide Install. Using this type of installation without knowledge
how umask works is a big security risk.”

Without knowing how you installed it this is the only thing I can think
of.


Luis L.

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