简体   繁体   English

安装ruby的RVM问题2

[英]RVM problems installing ruby 2

I did rvm get stable 我做了rvm get stable

Then I tried to install ruby 2.0.0 然后我尝试安装ruby 2.0.0

$ **rvm install 2.0.0** 
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for smf, might require sudo password.
Installing SM Framework.
Error running 'requirements_smf_install_sm',
please read /usr/local/rvm/log/ruby-2.0.0-p0/smf_install.log

$ **cat /usr/local/rvm/log/ruby-2.0.0-p0/smf_install.log**
[2013-03-28 20:58:11] requirements_smf_install_sm
SMF Framework support is only intended for RailsInstaller, please use Homebrew integration instead.

The error log is not very helpful. 错误日志不是很有帮助。 I am on Mac OS X Mountain Lion. 我在Mac OS X Mountain Lion上。 Any help? 有帮助吗?

It's because RVM was set to use a different library system: SMF. 这是因为RVM设置为使用不同的库系统:SMF。 You need to set RVM to use brew instead. 您需要将RVM设置为使用brew。 Here is page on rvm autolibs https://rvm.io/rvm/autolibs/ 这是rvm autolibs页面https://rvm.io/rvm/autolibs/

Use rvm autolibs show to see what your current setting is and if you are using brew, you can change it with rvm autolibs brew 使用rvm autolibs show查看您当前的设置是什么,如果您使用brew,您可以使用rvm autolibs brew更改它

Try running 试试跑步

brew update

If you don't have brew installed there is a good guide here to doing the whole installation process, you can ignore the 1.9.3 stuff and replace it with 2.0.0 如果你没有安装brew,这里有一个很好的指导来完成整个安装过程,你可以忽略1.9.3的东西并用2.0.0替换它

http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM