【发布时间】:2017-09-28 10:28:42
【问题描述】:
无法在 ruby 2.4.1 上安装 gem。
$ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
$rvm osx-ssl-certs status all
Selected SSL certs for: ruby-1.9.2-p290
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Certificates bundle /usr/local/etc/openssl/cert.pem is up to date.
Certificates bundle /etc/openssl/cert.pem is up to date.
Certificates bundle is old.
$gem install bundler
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
$rvm osx-ssl-certs update all
Selected SSL certs for: ruby-1.9.2-p290
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Updating certificates bundle /usr/local/etc/openssl/cert.pem: Already up to date.
Updating certificates bundle /etc/openssl/cert.pem: Already up to date.
Updating certificates bundle : Empty path passed to certificates update, functions stack: requirements_osx_update_openssl_cert_run __rvm_osx_ssl_certs_update_for_path __rvm_osx_ssl_certs_run_filter_and_run __rvm_osx_ssl_certs_run __rvm_osx_ssl_certs_update __rvm_osx_ssl_certs source __rvm_run_wrapper rvm
Failed.
那个基础证书是怎么回事?
尝试卸载并重新安装适用于以前版本的 openssl。试过rvm get head。没有运气。
【问题讨论】:
-
它正在检查您的 1.9.2 证书,这是 Ruby 的博物馆级版本。你能用它来检查 2.4.1,你显然想使用的版本吗?
标签: ruby openssl ssl-certificate rvm