使用Mac Mountain Lion
我使用brew,rvm,gem有时和sudo一起使用(是的,我知道这不是一个好主意) - 我不得不承认我没有清楚的图片rvm的哪些部分可能与本机ruby安装冲突或者来自brew的安装...
compass install compass
给了我:
$ compass安装指南针 /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- sass/script/node (LoadError) from /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in<top (required)>' from /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' 来自/Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in
阻止' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:ineach' from /Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in
' 来自/Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in<top (required)>' from /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' 来自/Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:5:in
阻止' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:4:ineach' from /Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/lib/compass.rb:4:in
' 来自/Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/marc/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:20:inblock in <top (required)>' from /Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:8:in
fallback_load_path' 来自/Users/marc/.rvm/gems/ruby-2.1.0/gems/compass-0.12.2/bin/compass:19:in<top (required)>' from /Users/marc/.rvm/gems/ruby-2.1.0/bin/compass:23:in
load' 来自/Users/marc/.rvm/gems/ruby-2.1.0/bin/compass:23:in<main>' from /Users/marc/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in
eval' 来自/Users/marc/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in`'
然后
which -a gem
结果:
/Users/marc/.rvm/rubies/ruby-2.1.0/bin/gem
/usr/local/bin/gem
/usr/bin/gem
/usr/local/bin/gem
/usr/bin/gem
我今天得知在安装sass和指南针时我不应该使用sudo我使用sudo卸载了sass和指南针。之后我做了一个没有sudo的宝石安装指南针。
不幸的是和上面一样的错误。
所以这没有影响。
有什么想法吗? 谢谢, 马克