gpt4 book ai didi

ruby - rvm Ruby 安装期间运行 '__rvm_make -j 1' 错误 |打开SSL错误

转载 作者:数据小太阳 更新时间:2023-10-29 07:55:16 24 4
gpt4 key购买 nike

您可能正在搜索Error running '__rvm_make -j 1'
那只是说,编译 ruby​​ 时出了点问题。只有当 openssl 和/或 ossl_ssl 是您的错误消息的一部分时,此问题才与您相关。
但也许您的问题是一个类似的问题,您可以通过一些自定义来解决您的问题。


背景
今天我想删除一个项目的所有 gem,但忘记事先为 bundler 指定路径,所以所有 gem 安装在 ~/.rvm/gems/ruby-2.2.4/gems/ 中。

因为它是唯一的 ruby​​ 2.2.4 项目,所以我认为 rm -rf ~/.rvm/gems/ruby-2.2.4/gems/* 会非常好。事实并非如此。 Bundler 消失了,gem install bundler 也不再工作了。

我用 rvm remove ruby​​-2.2.4 删除了漏洞 ruby​​ 安装,ant 试图重新安装它。这是我收到错误的控制台输出:

控制台输出

> rvm install ruby-2.2.4
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.2.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/fkammer/.rvm/rubies/ruby-2.2.4, this may take a while depending on your cpu(s)...
ruby-2.2.4 - #downloading ruby-2.2.4, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.7M 100 12.7M 0 0 655k 0 0:00:19 0:00:19 --:--:-- 234k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.2.4 - #extracting ruby-2.2.4 to /Users/fkammer/.rvm/src/ruby-2.2.4....
ruby-2.2.4 - #configuring..........................................................
ruby-2.2.4 - #post-configuration.
ruby-2.2.4 - #compiling..............................................................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/fkammer/.rvm/log/1456431932_ruby-2.2.4/make.log
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
ossl_ssl.c:2217:21: error: invalid application of 'sizeof' to an incomplete type 'const struct (anonymous struct at ossl_ssl.c:115:14) []'
for (i = 0; i < numberof(ossl_ssl_method_tab); i++) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
9 errors generated.
make[2]: *** [ossl_ssl.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.

重试不会改变任何东西。我还尝试完全卸载 rvm (rvm implode) 并重新安装它,但都没有成功。

系统
Mac OS X – El Capitan (10.11.3)
rvm 1.26.11(最新)
Homebrew 软件 0.9.5

最佳答案

看起来 openssl 有问题。

rvm 在我的安装中使用 homebrew 作为它的包管理器(我猜这是默认设置)。您可以确保使用 rvm autolibs homebrew

我重新安装了openssl

brew reinstall openssl

通过 brew list 看到我的系统上安装了另一个名为 openssl098 的 openssl 包。尝试重新安装它也导致了以下错误:

> brew reinstall openssl098
Error: No available formula with the name "openssl098"

我刚刚删除了包

brew uninstall --force openssl098

并再次重新安装 openssl 以确保 openssl098 不是必需的依赖项。但它没有再次安装。

之后我再次尝试通过 rvm 安装 ruby​​-2.2.4,它的效果非常好:) 所以我猜我的 openssl 包由于某种原因被破坏了。

关于ruby - rvm Ruby 安装期间运行 '__rvm_make -j 1' 错误 |打开SSL错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35641258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com