相关疑难解决方法(0)

如何判断RVM安装的ruby实际上正在使用哪个openssl lib

我发现我可以使用以下任何命令成功安装ruby:

$ rvm reinstall 1.9.3-p327
$ rvm reinstall 1.9.3-p327 --with-openssl-dir=/usr/local
$ rvm reinstall 1.9.3-p327 --with-openssl-dir=/afdlkjasd_not_a_dir
$ rvm reinstall 1.9.3-p327 --with-openssl-dirffadsf=/afdlkjasd_not_a_dir
Run Code Online (Sandbox Code Playgroud)

无论我使用哪种上述命令,我都可以输入:

$ rvm use 1.9.3-p327
Using /home/clay/rvm/gems/ruby-1.9.3-p327
$ which ruby
/home/clay/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
$ ruby -e "puts require('openssl')"
true
Run Code Online (Sandbox Code Playgroud)

无论我做什么,我似乎都有ssl支持.我猜rvm或者ruby构建过程并不介意无效的选项或值.--with-openssl-dir即使我正确地输入(明显地)它,我也不知道该选项是否得到尊重.

rvm是否将我的ruby与我想要的openssl lib(/ usr/local中的那个)链接起来?如何判断哪个openssl lib编译/链接了ruby?

我正在使用Linux Mint 13.

ruby openssl rvm

7
推荐指数
2
解决办法
3296
查看次数

Ruby“无法加载 OpenSSL”错误 macOS Sierra

我今天刚下载了 Ruby、Git、Rails 和 Homebrew。我通过 rvm v. 1.29.0 安装了 ruby​​ 我的 Ruby 是 2.4.0 版,Rails 是 5.0.1。我的 macOS 是 10.12 Sierra。

当我尝试通过这样做来制作测试应用程序时, rails new test_app 给了我一个错误:

`Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
RVM are available at rvm.io/packages/openssl.`        
    run  bundle exec spring binstub --all
bundler: command not found: spring
Install missing gem executables with `bundle install`
Run Code Online (Sandbox Code Playgroud)

所以我尝试了一个 bundle install 命令,其中同样的错误 …

ruby terminal installation ruby-on-rails

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

ruby ×2

installation ×1

openssl ×1

ruby-on-rails ×1

rvm ×1

terminal ×1