gpt4 book ai didi

ruby-on-rails - `rbenv install 2.2.0` 错误

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

尝试 Setup Ruby On Rails onUbuntu 14.04 Trusty Tahr

控制台错误输出:

rbenv install 2.2.0
Downloading ruby-2.2.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
Installing ruby-2.2.0...

BUILD FAILED (Ubuntu 14.04 using ruby-build 20150112)

Inspect or clean up the working tree at /tmp/ruby-build.20150113142305.19357
Results logged to /tmp/ruby-build.20150113142305.19357.log

Last 10 log lines:
compiling ossl_digest.c
compiling ossl_x509name.c
compiling ossl_bio.c
compiling ossl_config.c
compiling ossl_asn1.c
installing default openssl libraries
linking shared-object openssl.so
make[2]: Leaving directory `/tmp/ruby-build.20150113142305.19357/ruby-2.2.0/ext/openssl'
make[1]: Leaving directory `/tmp/ruby-build.20150113142305.19357/ruby-2.2.0'
make: *** [build-ext] Error 2

Log file ruby-build.20150113142305.19357.log.

最佳答案

Ruby 2.2.0 需要 libffi 的开发版本,所以这应该有所帮助:

sudo apt-get install libffi-dev

关于ruby-on-rails - `rbenv install 2.2.0` 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27915581/

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