当我重新回到 Linux 时,我可能已经陷入困境,并且无法使用 rbenv 在 OpenSuse 上安装新版本的 Ruby。
me@linux-tzyj:~> rbenv install 2.4.0
Downloading ruby-2.4.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
Installing ruby-2.4.0...
BUILD FAILED (openSUSE Tumbleweed 20180209 using ruby-build 20171226-3-g01e7b7b)
Inspect or clean up the working tree at /tmp/ruby-build.20180211014832.4210
Results logged to /tmp/ruby-build.20180211014832.4210.log
Last 10 log lines:
The Ruby openssl extension was not compiled.
The Ruby readline extension was not compiled.
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libreadline-dev zlib1g-dev` to fetch missing dependencies.
我尝试在 apt-get 和 zypper 中找到这些,但没有成功。OpenSuse 处理这些包的方式与 Ubuntu 不同吗?这是我几年前使用的方式。
我尝试运行zypper in -t pattern devel_basis
,但只是从zlib1g-dev
丢失的软件包列表中删除了
答案1
它们确实有些不同。试试看zypper install libopenssl-devel readline-devel
。