【问题标题】:RVM problems installing ruby 2安装 ruby​​ 2 的 RVM 问题
【发布时间】:2013-03-29 00:03:53
【问题描述】:

我做了rvm get stable

然后我尝试安装 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.

错误日志不是很有帮助。我在 Mac OS X Mountain Lion 上。 有什么帮助吗?

【问题讨论】:

    标签: ruby-on-rails ruby rvm


    【解决方案1】:

    这是因为 RVM 被设置为使用不同的库系统:SMF。您需要将 RVM 设置为使用 brew 。这是 rvm autolibs 上的页面 https://rvm.io/rvm/autolibs/

    使用rvm autolibs show查看您当前的设置,如果您使用的是brew,您可以使用rvm autolibs brew进行更改

    【讨论】:

    • 感谢纠正我命令的审阅者。奇怪的是 3 个管理员拒绝了它。
    • rvm autolibs macports 也能很好地工作,如果你使用端口而不是自制软件:)
    【解决方案2】:

    尝试运行

    brew update
    

    如果您没有安装 brew,这里有一个很好的指南来完成整个安装过程,您可以忽略 1.9.3 的内容并将其替换为 2.0.0

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

    【讨论】:

    • 是的,我遇到了同样的问题,更新brew 为我解决了这个问题。
    • 我更新了 brew 并安装了“brew install libksba”,如您发送的教程中所述。我还需要安装什么?
    • 现在运行rvm install 2.0.0会发生什么?
    • 我通过 rvm install 2.0.0 --autolibs=brew 解决了这个问题。有意义吗?
    • @Tony 绝对。有同样的问题,这也为我解决了。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-04
    • 1970-01-01
    相关资源
    最近更新 更多