【发布时间】:2012-08-01 23:50:20
【问题描述】:
如果我在 bash 中运行 ruby -v,它会报告我正在使用 1.9.3p194。
但是,我正在使用 CodeKit 编译 Compass 项目,并且一直返回此错误:
Compass was unable to compile one or more files in the project:
LoadError on line 31 of /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb: no such file to load -- toolkit
Run with --trace to see the full backtrace
我已正确配置 CodeKit 以运行 Sass 3.2 和 Compass 0.13,所以我不确定它为什么一直在上面的目录中寻找 Ruby。有任何想法吗?我也在使用 RVM。
这是我在 .bash_profile 中的配置路径:
PATH="/usr/local/bin:$PATH"
PATH="$PATH:$HOME/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
和 bashrc:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
【问题讨论】:
-
@zellio
/Users/me/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -
请在其中包含您使用的配置/路径
-
@mpapis 我已经更新了问题中的路径
-
你在 CodeKit 中设置的
compass的路径是什么?你有没有以任何方式设置红宝石?