我收到此错误消息:
"It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby."
我尝试输入此命令:rvm pkg install libyaml
我收到此错误消息:
"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."
有谁知道我做错了什么?谢谢!
答案 0 :(得分:9)
当前版本[是] LibYAML:0.1.4 (2011-05-30)
[2012年,当我回答这个问题时]。
下载源包:http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
。
要构建并安装LibYAML,请运行
$tar zxf yaml-0.1.4.tar.gz
$cd yaml-0.1.4
$ ./configure
$ make
$ make install
或者只是:
$brew install libyaml
接着,
$brew install ruby
答案 1 :(得分:4)
这对我有用:
答案 2 :(得分:1)
试试这个......
打开一个新的终端窗口并:
cd .rvm/src
sudo rm -rf yaml*
(提供您的凭据)
cd ~
rvm pkg install libyaml
答案 3 :(得分:1)
使用rvm for mac osx安装ruby,使用autolibs安装libyaml并首先卸载libyaml帮助。
这对我有用:
brew uninstall libyaml
rvm autolibs enable
rvm reinstall ruby-2.1.1