在我的mac上全局安装SASS时出错

时间:2015-04-04 18:54:19

标签: css ruby macos sass

我已经在我的Mac上安装了SASS:Sass 3.2.19 (Media Mark)ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]但如果我尝试按gem install sasssudo gem install sass更新最新版本,则会出现此错误:

ERROR:  Loading command: install (LoadError)
    dlopen(/Users/MacBook/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method
  Referenced from: /Users/MacBook/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
  Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
 in /Users/MacBook/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle - /Users/MacBook/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

我无法弄清楚错误的含义。这是 gist 。有帮助吗?感谢。

1 个答案:

答案 0 :(得分:0)

我第一次安装SASS时遇到了类似的问题。如果你有啤酒,你可以尝试:

brew rm openssl
brew cleanup openssl
brew install openssl
rvm reinstall ruby
gem install sass