本地站点的RVM Sass Compass问题 [英] RVM Sass Compass issue with localhost sites
问题描述
我花了5个多小时来尝试解决此问题,并觉得自从我还没有这样做之前,我现在就应该寻求帮助...
I have spent over 5 hours trying to solve this and feel that since I haven't done it before I should ask some help now...
我有我继承了Sass / Compass的网站。我已经在本地主机上设置了它,并且在该站点上正常工作。
I have a site I inherited with Sass/Compass put together. I have it set up on my localhost and it works fine for that site.
我有第二个本地主机站点,我想在其上使用它。所以我去了终端的主题文件夹-(/ sites / all / theme / newtheme /)我试图用指南针观看一个sass文件夹,并不断出现这些错误...
I have a second localhost site I want to use it on. So I went to the theme folder in terminal - (/sites/all/theme/newtheme/) I tried to start watching a sass folder with compass and keep getting these errors...
/Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass'
(>= 0) among 12 total gem(s) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:309:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /usr/bin/compass:18
我正在使用rvm红宝石1.9.3,并且已安装sass / compass。
我已经搜索并测试了许多想法,但我不知道该怎么办。我真的很想陷入困境,但我正因为时机而陷入困境,需要解决这个问题。我很乐意为您提供任何帮助,并且会进行任何研究和测试。
I am using rvm rubies 1.9.3 and sass/compass have been installed. I have searched and tested many ideas and I am lost as to what to do. I really want to get into sass but I am losing out with timing to get into it and need to solve this issue. I would love any help you can give and will research and test anything.
更新:
我正在使用rvm,正在使用ruby-1.9.3-p484。这是我的宝石清单。
Update: I am using rvm and I am using ruby-1.9.3-p484.Here is my gem list.
LOCAL GEMS
bigdecimal (1.1.0)
bundler (1.5.3)
bundler-unload (1.0.2)
celluloid (0.15.2)
chunky_png (1.3.0)
ompass (0.12.2)
executable-hooks (1.3.1)
ffi (1.9.3)
fssm (0.2.10)
gem-wrappers (1.2.4)
io-console (0.3)
json (1.5.5)
listen (2.4.1)
minitest (2.5.1)
rake (0.9.2.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rdoc (3.9.5)
rubygems-bundler (1.4.2)
rvm (1.11.3.9)
sass (3.3.0.rc.4, 3.2.14, 3.2.13)
timers (1.1.0)
何时我运行$ compass -v或$ compass手表时出现此错误。
When I run $compass -v, or $compass watch I get this error.
ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- sass/script/node (LoadError)
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in `require'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass.rb:4:in `each'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
gems/ruby-1.9.3-p484@global/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
rubies/ruby-1.9.3-p484/bin/compass:23:in `load'
rubies/ruby-1.9.3-p484/bin/compass:23:in `<main>'
gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `eval'
gems/ruby-1.9.3-p484@global/bin/ruby_executable_hooks:15:in `<main>'
我认为一件事就是通向指南针的道路。但是,当我尝试使用ruby-1.9.3-p484@global时,会得到相同的结果。
One thing I think is the path to compass. However when I try to use ruby-1.9.3-p484@global I get the same results.
我一直在搜索,测试,安装和卸载以尝试计算我错过的一步。请分享任何想法。谢谢
I have been searching, testing, installing and uninstalling to try to figure out the one step I am missing. Please share any ideas. Thanks
推荐答案
您需要卸载sass并使用以下命令重新安装它:
You need to uninstall sass and reinstall it with the following:
gem uninstall sass
gem install sass --no-ri --no-rdoc
gem install compass --no-ri --no-rdoc
这篇关于本地站点的RVM Sass Compass问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!