小编Jar*_*yer的帖子

安装支持 OpenSSL 和 ReadLine 的 Ruby 2.0

我有一个全新的 Ubuntu 12.04 VM,我想安装 Ruby 2.0.0-p0。我能够很容易地安装 Ruby,但我无法让 gems 工作。

$ 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
Run Code Online (Sandbox Code Playgroud)

我已经安装了开放式 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.
Run Code Online (Sandbox Code Playgroud)

相似地,

$ …
Run Code Online (Sandbox Code Playgroud)

ruby

14
推荐指数
3
解决办法
2万
查看次数

标签 统计

ruby ×1