Environment variables 共享主机上的Sass和Compass设置

Environment variables 共享主机上的Sass和Compass设置,environment-variables,sass,compass-sass,Environment Variables,Sass,Compass Sass,我想我会尝试使用SASS,但即使安装它也会遇到问题(在Bluehost共享主机上,它并不完全是Ritz) 下面是我刚刚检查是否安装的结果: username [~/public_html/sites/all/themes]# sass -v Sass 3.2.7 (Media Mark) username [~/public_html/sites/all/themes]# compass -v Unable to load Sass. Please install it with one of

我想我会尝试使用SASS,但即使安装它也会遇到问题(在Bluehost共享主机上,它并不完全是Ritz)

下面是我刚刚检查是否安装的结果:

username [~/public_html/sites/all/themes]# sass -v
Sass 3.2.7 (Media Mark)
username [~/public_html/sites/all/themes]# compass -v
Unable to load Sass. Please install it with one of the following commands:
gem install sass --pre
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- sass (LoadError)
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/../lib/compass/dependencies.rb:6
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/../lib/compass.rb:5:in `require'
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/../lib/compass.rb:5
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/../lib/compass.rb:4:in `each'
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/../lib/compass.rb:4
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/compass:20:in `require'
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/compass:20
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
from /home7/username/ruby/gems/gems/compass-0.12.2/bin/compass:19
我尝试过卸载,以不同的顺序重新安装,按照错误消息中的建议安装带有--pre标志的Sass,自己安装compass,让Sass通过compass安装,结果是一样的

我还没有使用这些工具,所以我不知道应该发生什么,但我确实必须更新$PATH以使“sass”之类的命令生效,所以我怀疑compass无法找到sass或其他东西。希望对有经验的人来说,这是一个无需思考的帖子。

参考和添加:

export GEM_HOME=$HOME/ruby/gems
export GEM_PATH=$GEM_HOME:/usr/lib/ruby/gems/1.8
export GEM_CACHE=$GEM_HOME/cache
export PATH=$PATH:$HOME/ruby/gems/bin
为了我的安全,bashrc为我解决了这个错误