我尝试在 Ubuntu 12.04 上使用 rbenv 安装 ruby 2.0:
rbenv install 2.0.0-p247
现在我收到以下错误消息:
Installing ruby-2.0.0-p247...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20130801100032.13868
Results logged to /tmp/ruby-build.20130801100032.13868.log
Last 10 log lines:
installing default gems: /home/chris/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
bigdecimal 1.2.0
io-console 0.4.2
json 1.7.7
minitest 4.3.2
psych 2.0.0
rake 0.9.6
rdoc 4.0.0
test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
在这个问题中Sam Ruby 说我应该安装 libssl-dev 并尝试使用:
sudo apt-get install libssl-dev
现在我得到了这个错误:
dpkg: Fehler: Parsen der Datei »/var/lib/dpkg/available«, nahe Zeile 10:
package name fehlt
E: Sub-process /usr/bin/dpkg returned an error code (2)
有人可以解释一下问题是什么,我该如何解决它,拜托。