每当我运行
我得到了以下输出:
sudo 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
RVM版本:rvm 1.18.14,Ruby版本为2.0.0p0。
运行错误 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/Users/moza/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',请阅读 /Users/moza/.rvm/log/ruby-2.0.0-p0/configure.log 在运行 configure 时发生错误。 停止安装。
- mikhail90rvm get head
并阅读所有输出,然后使用rvm reinstall ruby--autolibs=3
进行安装。 - mpapis