我有一个新的Ubuntu 12.04 VM,我想安装Ruby 2.0.0-p0。我可以很容易地安装Ruby,但是无法使用gem。
$ gem install bundler
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
我已经安装了开放SSL,所以我不确定是什么问题。
$ sudo apt-get install libssl1.0.0 libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
libssl1.0.0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
同样,
$ which openssl
/usr/bin/openssl
如果我返回到安装,则有两行与我有关。
$ sudo make install
Failed to configure openssl. It will not be installed.
Failed to configure readline. It will not be installed.
谢谢!