gpt4 book ai didi

安装 compass gem 后 ruby​​ 1.9.1 错误

转载 作者:数据小太阳 更新时间:2023-10-29 07:12:47 25 4
gpt4 key购买 nike

我像这样在 ubuntu 12.04 上安装了 compass :

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'
from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in
' 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
require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2: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
each' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1: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 require'
from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in
' 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
require' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:5:in block in <top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass.rb:4:in
each' 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 require'
from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:20:in
block in ' from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:8:in fallback_load_path'
from /usr/lib/ruby/gems/1.9.1/gems/compass-0.12.2/bin/compass:19:in
' from /usr/bin/compass:23:in load'
from /usr/bin/compass:23:in
'

当我运行这个时:

ruby -v

我得到:

ruby 1.9.3p0 (2011-10-30 revision 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 版本,它是 pony。

关于安装 compass gem 后 ruby​​ 1.9.1 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21315845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com