【发布时间】:2021-07-30 09:41:03
【问题描述】:
我最近加载了 Fedora 作为我的主要开发环境。
但是,我在安装 ruby 版本 时遇到问题
我安装了 rbenv 和 ruby 3.0.2 只是为了检查一切是否正常,这是我的输出和日志。
➜ ~ rbenv install 2.2.6
Downloading ruby-2.2.6.tar.bz2...-> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.6.tar.bz2
Installing ruby-2.2.6...
WARNING: ruby-2.2.6 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
BUILD FAILED (Fedora 34 using ruby-build 20210726-1-gcf9a6fc)
Inspect or clean up the working tree at /tmp/ruby-build.20210730103309.64945.5oJnxZ
Results logged to /tmp/ruby-build.20210730103309.64945.log
Last 10 log lines:
linking shared-object bigdecimal.so
make[2]: Leaving directory '/tmp/ruby-build.20210730103309.64945.5oJnxZ/ruby-2.2.6/ext/bigdecimal'
linking shared-object nkf.so
make[2]: Leaving directory '/tmp/ruby-build.20210730103309.64945.5oJnxZ/ruby-2.2.6/ext/nkf'
linking shared-object date_core.so
make[2]: Leaving directory '/tmp/ruby-build.20210730103309.64945.5oJnxZ/ruby-2.2.6/ext/date'
linking shared-object ripper.so
make[2]: Leaving directory '/tmp/ruby-build.20210730103309.64945.5oJnxZ/ruby-2.2.6/ext/ripper'
make[1]: Leaving directory '/tmp/ruby-build.20210730103309.64945.5oJnxZ/ruby-2.2.6'
make: *** [uncommon.mk:189: build-ext] Error 2
【问题讨论】:
-
可以分享
/tmp/ruby-build.20210730103309.64945.log吗? -
我已将 @Sumak 日志添加到粘贴箱中,因为它们超出了正文的限制
-
错误信息都是关于openssl的。请参阅this 等解决方法。
-
我没有使用自制软件我从源代码@TomLord 安装了 rbenv
标签: ruby-on-rails ruby fedora rbenv