在mac

时间:2016-08-20 08:01:02

标签: ruby cocoapods

当我尝试在我的mac上安装cocoapods时,我安装了ruby,如下所示:

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

但是当我输入命令sudo gem install cocoapods时,它会显示错误:

ERROR:  Loading command: install (LoadError)
    dlopen(/usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle
  Reason: image not found - /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle

ERROR:  While executing gem ... (NoMethodError)
    undefined method invoke_with_build_args' for nil:NilClass

$ ruby reinstall
ruby: No such file or directory -- reinstall (LoadError)

我是ruby的新手,也许它说缺少openssl.bundle?

0 个答案:

没有答案