【问题标题】:Installing ruby <2.3 rbenv in fedora workstation 34在 fedora 工作站 34 中安装 ruby​​ <2.3 rbenv
【发布时间】: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

这里是日志https://pastebin.com/KHCQjAsA

【问题讨论】:

  • 可以分享/tmp/ruby-build.20210730103309.64945.log吗?
  • 我已将 @Sumak 日志添加到粘贴箱中,因为它们超出了正文的限制
  • 错误信息都是关于openssl的。请参阅this 等解决方法。
  • 我没有使用自制软件我从源代码@TomLord 安装了 rbenv

标签: ruby-on-rails ruby fedora rbenv


【解决方案1】:

尝试以下命令:

apt install libssl1.0-dev


CC=$(which gcc-6) rbenv install 2.2.6

【讨论】:

  • 我在使用 dnf 而不是 apt 的 Fedora 上
  • 对,我错过了
猜你喜欢
  • 1970-01-01
  • 2020-09-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-27
  • 2016-01-21
  • 1970-01-01
相关资源
最近更新 更多