Clean install OSX 10.9.1 returns undefined method `path2class' when trying to install gems
It turns out that this is a bug in an older version of psych, but it can't be solved, as long as you installed ruby with RVMs statically linked gems. So basically the problem is related to RVMs statically linked gems. Installing rubies with the --disable-binary
solves the problem:
rvm install 2.0.0-p353 --disable-binary
Or reinstall with:rvm reinstall 2.0.0-p353 --disable-binary
Install RVM properly, keeps asking for password when installing gems
It looks like your RVM and Rubygems environments are set up OK. The problem is most likely that you installed something using sudo
at some point, which now has left traces of itself in your RVM installation.
To fix this is pretty easy and shouldn't affect anything else on your machine. Run this from the command-line:
sudo chown -R tjobbeandrews:staff ~/.rvm
Here's what it does:sudo
escalates your privileges to "root", allowing you to change things currently owned by "root".chown -R tjobbeandrews:staff ~/.rvm
tells the system to change ownership and group of all files in the ~/.rvm directory, which is where RVM stores everything, back to you and what should be your default group.
sudo
. Making changes as root can crash your system in a second, can open the door for infections/viruses, or cause lasting problems that make your life miserable simply because the author wrote it years ago and things have changed since then."The internet never forgets" is true, and it's a vast garbage-pit of knowledge that can go stale within days. It's up to you to educate yourself about what is safe, and how to safely install things, and, even more important, know how to recover from the changes you do based on someone else's say-so, so walk carefully padawan.
Related Topics
How to Send an Image on The Web in an Xmpp (Jabber) Message
Deleting a Specific Line in a Text File
Regex to Check Alphanumeric String in Ruby
Where Are Keywords Defined in Ruby
How to Create a Custom Sort Method in Ruby
Rails Redirecting Invalid Route to Root
Thor Executable - Ignore Task Name
Activemodel::Validations on Anonymous Class
Browsing Ruby Code a La Smalltalk
Paperclip and Amazon S3 How to Do Paths
How Do Erlang Actors Differ from Oop Objects
Why Slicing The Params Hash Poses a Security Issue on Mass-Assignment
How to Handle 404 Not Found Errors in Nokogiri
How to Properly Manage The Rails Tmp Directory
Ruby: How to Escape Url with Square Brackets [ and ]
Deleting Items from an Array Requires Multiple Passes to Remove Them All