【问题标题】:Rails 4 beta1 install errorRails 4 beta1 安装错误
【发布时间】:2013-03-08 23:12:48
【问题描述】:

我无法安装 Rails 4 测试版。我使用 RVM 安装了 Ruby 2.0.0,这似乎成功了。这是我在尝试安装 Rails gem 时遇到的错误;

$ gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc
ERROR:  Loading command: install (LoadError)
cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

【问题讨论】:

    标签: ruby-on-rails


    【解决方案1】:

    用最新版本重新安装你的 RVM rubies 应该可以让你加载安装 Rails 所需的所有依赖项:

    rvm get head --autolibs=3
    rvm pkg remove
    rvm reinstall all --force
    

    【讨论】:

    • 终于让它工作了。由于某种原因,它在使用 openssl 时遇到了问题,我跟踪了几条兔子路线,但我认为这是修复它的方法; rvm pkg install openssl : brew update (im on a Mac) : rvm reinstall 2.0.0 --with-openssl-dir=$rvm_path/usr : 然后 gem install rails 工作了。感谢您的帮助,它让我走上了正确的道路。
    猜你喜欢
    • 1970-01-01
    • 2014-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多