安装指南针宝石后,红宝石1.9.1错误
我在Ubuntu 12.04上安装了指南针,如下所示:
sudo gem install compass
sudo gem install sass
但是在运行这个命令之后:
compass version
我得到这个错误:
/usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in require': cannot load such file -- sass/script/node (LoadError) from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in
rescue in require from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in require': cannot load such file -- sass/script/node (LoadError) from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in
require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in
/usr/local/lib/site_ruby/1.9.1/rubygems /core_ext/kernel_require.rb:55:in从/usr/lib/ruby/gems/1.9 require' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require' .1 / gems / compass-0.12.2 / lib / compass / sass_extensions / monkey_patches.rb:2: block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in
中的block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in
来自/usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches。 rb:1:在<top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
中的<top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
<top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require / require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in
/usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in
/usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in
' :55:在/usr/lib/ruby/gems/1.9.1/gems/compass中的'require'from require' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require' -0.12.2 / lib / compass.rb:5: block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in
中的block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in
从/usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in <top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
block in <top (required)>' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in
每个<top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require中from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in <top (required)>' from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:20:in
from from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12。 2 / bin / compass:8:在fallback_load_path' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in
fallback_load_path' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in
/ usr / bin / compass:23:in load' from /usr/bin/compass:23:in
fallback_load_path' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in
load' from /usr/bin/compass:23:in
'
当我运行这个:
ruby -v
我得到:
ruby 1.9.3p0(2011-10-30修订版33570)[x86_64-linux]
这里需要修正什么。
解:
如下所述:
gem uninstall compass
gem uninstall sass
gem install compass
gem uninstall sass
gem install sass
那是什么修复了我。
卸载sass并使用以下命令重新安装它:
gem uninstall sass
gem install sass
因为某些原因
gem install compass
带来一些小马的流血边缘版本的sass。
链接地址: http://www.djcxy.com/p/63327.html