Install libyaml for ruby ​​on mac osX (Lion)

I get this error message:

"It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby."

I tried to enter this command: rvm pkg install libyaml

and I get this error message:

"Fetching yaml-0.1.4.tar.gz to /Users/luke/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/luke/.rvm/src
Error running 'tar xmzf /Users/luke/.rvm/archives/yaml-0.1.4.tar.gz -C
/Users/luke/.rvm/src ', 
   please read /Users/luke/.rvm/log/yaml/extract.log
Configuring yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/luke/.rvm/usr"  ', 
   please read /Users/luke/.rvm/log/yaml/configure.log
Compiling yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/luke/.rvm/log/yaml/make.log

Database file /Users/luke/.rvm/config/packages does not exist."

Does anyone know what I'm doing wrong? Thank!

+5
source share
4 answers

Try it...

Open a new terminal window and:

cd .rvm/src
sudo rm -rf yaml*

(enter your credentials)

cd ~
rvm pkg install libyaml
+1
source

The current version [was] LibYAML: 0.1.4 (2011-05-30)[in 2012 when I answered this question].

Download the source package: http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz.

To create and install LibYAML, run

$tar zxf yaml-0.1.4.tar.gz $cd yaml-0.1.4 $ ./configure $ make $ make install

Or simply:

$brew install libyaml

Further, $brew install ruby

Good luck.

+9
source

:

+4

ruby ​​ rvm mac osx, autolibs libyaml libyaml.

:

brew uninstall libyaml
rvm autolibs enable
rvm reinstall ruby-2.1.1
+1
source

All Articles