Friday, November 16, 2012

libyaml / psych / rvm / zlib issues

Previous: Remount thumb drive read-write

Every time I set up a new Ubuntu instance for Ruby development, I run into the same problem. After installing rvm, when I try to install a gem it complains about not being able to find psych for yaml and not finding zlib. I can't seem to get the hang of this. As usual, I found a number of different solutions online, and each of them solved the problem for some people and not for others. FWIW, this is what corrected the problem for me on a fresh instance of Ubuntu 12.10:

sudo apt-get install zlib1g-dev
sudo apt-get install libyaml-dev
rvm reinstall 1.9.3
Maybe this will help you if you're having a similar problem.

Next: Installing VMware Player 5.0