2013-06-06 79 views
2

我想从RVM到我的MacBook进行全新安装,并且我对RVM要求有很多工作。我开始单独安装,但我有此错误:要求OS X Brew库安装错误

$ rvm requirements 
Installing requirements for osx, might require sudo password. 
Already up-to-date. 
Installing required packages: libxml2, libxslt........ 
Error running 'requirements_osx_brew_libs_install libxml2 libxslt', 
please read /Users/myuser/.rvm/log/1370499182_package_install_libxml2_libxslt.log 

日志有这些消息:

[2013-06-05 23:00:55] requirements_osx_brew_libs_install 
Error: No such keg: /usr/local/Cellar/libxml2 
Warning: For non-brewed Python, you have to set the PYTHONPATH in order to 
find brewed Python modules. 
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH 
Error: File exists - /usr/local/lib/python2.7/site-packages 
There were package installation errors, make sure to read the log. 
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation 

我安装RVM对工作的Ruby on Rails的项目。

希望你能引导我,谢谢!

回答

0

安装这两个包:

brew install libxml2 libxslt 

他们可以从自制RVM将只使用它们,继续红宝石安装

+0

我收到一个错误信息后:警告:对于非酿造的Python,你必须设置PYTHONPATH以便 找到酿造的Python模块。 export PYTHONPATH =/usr/local/lib/python2.7/site-packages:$ PYTHONPATH 错误:文件存在 - /usr/local/lib/python2.7/site-packages – Stanmx

+0

是不是只有这个?它看起来更像是一个警告,检查包是否已安装'brew list -1 | \ grep libxml2'?确保显示整个输出/日志。 – mpapis

+0

不要显示任何内容。 – Stanmx