【发布时间】:2013-03-14 16:28:03
【问题描述】:
我刚刚在 MacMountainLion 上安装了 ruby 2,如何安装 gems?其实我都安装了,但是有问题。也许全新安装会解决。
macbook:~m$ gem install rails
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
macbook:~ m$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
macbook:~ m$ gem -v
2.0.3
macbook:~ m$
【问题讨论】:
-
看来您需要安装 openssl 开发库,因为它是扩展构建失败。
标签: ruby gem installation