I tried to install a new ruby version with rvm on my mac. There were several problems why I choosed to reinstall everything.
There are two versions of ruby.
- Mac interal ruby -> 1.8.*
- User verson -> 1.9.1 (need >= 1.9.2)
It is possible to install new version on the local mac version with “sudo rvm install …”
But when I try it with my user version, this error appears:
stvn$ rvm install 1.9.2
info: Installing Ruby from source to: /Users/stvn/.rvm/rubies/ruby-1.9.2-p0
info: Downloading ruby-1.9.2-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8296k 100 8296k 0 139k 0 0:00:59 0:00:59 --:--:-- 102k
info: Extracting ruby-1.9.2-p0 ...
info: Applying patch '' (located at /)
error: Error running 'patch -F25 -p1 -f <"/"', please check /Users/stevenklar/.rvm/log/ruby-1.9.2-p0/patch.apply.*.log
fail: There has been an error applying the specified patches. Aborting the installation.
Already tried several solutions posted here in stackoverflow and google. Nothing worked yet.
The errors seems to have something to do with a unvail. path. Means rvm use ” as path instead of for example ‘/Users/stvn/.rvm/…’
Somebody knows how to fix?
You have two versions of RVM, one in system (1.12.2 – almost new) and one in user home (1.0.2 – ancient).
as the user installation is recommended you should remove everything and start fresh:
open new terminal and make sure there is no rvm in environment:
the output should be empty, if not restart computer,
finally run the installer, as user, without sudo:
you could also install in guided mode asking for ruby 1.9.2: