gpt4 book ai didi

ruby - rbenv 安装 ruby​​ 构建失败

转载 作者:数据小太阳 更新时间:2023-10-29 06:59:04 25 4
gpt4 key购买 nike

我对 rbenv 很陌生,更不用说 ruby​​ 了,在诊断以下安装故障时遇到了一些困难:

rbenv install 2.0.0-p0
Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /Users/Haani/.rbenv/versions/2.0.0-p0

Downloading ruby-2.0.0-p0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/50d307c4dc9297ae59952527be4e755d
Installing ruby-2.0.0-p0...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/50/wzjqg8d11sn7xnkrsmgr1gn80000gn/T/ruby-build.20140420110650.75863
Results logged to /var/folders/50/wzjqg8d11sn7xnkrsmgr1gn80000gn/T/ruby-build.20140420110650.75863.log

Last 10 log lines:
compiling ossl_x509cert.c
compiling ossl_x509crl.c
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_x509req.c
compiling ossl_x509revoked.c
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
make: *** [build-ext] Error 2

查看完整日志 here

最佳答案

Homebrew 包“readline”似乎有问题。

brew uninstall readline
brew install https://raw.githubusercontent.com/Homebrew/homebrew/0181c8a1633353affefabe257c170edbd6d7c008/Library/Formula/readline.rb
brew pin readline

然后重试安装 ruby​​

rbenv install 2.0.0-p0

感谢 https://github.com/sstephenson/rbenv/issues/579#issuecomment-41122071 找到了答案

关于ruby - rbenv 安装 ruby​​ 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23177652/

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