【问题标题】:can't install rails on new mint os load error openssl无法在新的 mint os 加载错误 openssl 上安装 rails
【发布时间】:2013-09-07 07:23:01
【问题描述】:

9 月 3 日更新

sudo apt-get install libssl-dev

libssl-dev 已经是最新版本了。

但仍然遇到同样的错误。

 root@Lintong:~# gem install rails
    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​​ 我没有使用 rvm。我问了如何在 mint 上安装 ruby​​ 而不在这里使用 rvm

installed ruby using apt-get install ruby 2.0.0 succeeded but not using correct ruby version

现在当我执行 gem install rails 时出现上述错误,我缺少哪些依赖项?我通常不使用 linux 进行开发。我第一次这样做是因为我正在部署到 vps(数字海洋)

【问题讨论】:

    标签: ruby-on-rails linux-mint


    【解决方案1】:

    我认为您缺少 libssl-dev 包。尝试安装该软件包并重新编译 Ruby。您可能还缺少其他软件包。

    【讨论】:

    • 我使用 apt-get install 安装了该软件包,但我仍然遇到相同的错误,这不应该消失并替换为我需要的另一个依赖项吗?我的意思是我重新编译了它。/configure make
    • 我们很难在不查看服务器本身的情况下调试服务器配置问题。根据我的经验,安装该软件包使该错误消失。
    猜你喜欢
    • 2018-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-23
    • 2021-06-23
    • 1970-01-01
    • 2023-03-04
    • 2014-01-01
    相关资源
    最近更新 更多