我正在尝试使用 rbenv 安装旧版本的 ruby。
$ rbenv install ruby 1.9.3-p551
我收到此错误
BUILD FAILED (Ubuntu 18.04 using ruby-build 20191004)
Inspect or clean up the working tree at /tmp/ruby-build.20191022094814.9394
Results logged to /tmp/ruby-build.20191022094814.9394.log
最后 10 行日志:
linking shared-object nkf.so
make[2]: Leaving directory '/tmp/ruby-build.20191022094814.9394/ruby-1.9.3-p551/ext/nkf'
compiling callback-6.c
compiling callback-7.c
compiling callback-8.c
linking shared-object dl/callback.so
make[2]: Leaving directory '/tmp/ruby-build.20191022094814.9394/ruby-1.9.3-p551/ext/dl/callback'
make[1]: Leaving directory '/tmp/ruby-build.20191022094814.9394/ruby-1.9.3-p551'
uncommon.mk:178: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
答案1
这对我有用
- sudo apt 安装 libssl1.0-dev
- curl-fsSLhttps://gist.github.com/FiveYellowMice/c50490693d47577cfe7e6ac9fc3bf6cf.txt| rbenv 安装--补丁 1.9.3-p551
在下面的链接中找到了它。
https://stackoverflow.com/questions/51986932/debian-9-rbenv-ruby-1-9-3-openssl-not-available