【问题标题】:Ruby 1.9.3 and OS XRuby 1.9.3 和 OS X
【发布时间】: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 的路径是什么?你有没有以任何方式设置红宝石?

标签: ruby rvm sass


【解决方案1】:

我最终使用 Compass.app 而不是 CodeKit。就目前而言,CodeKit 似乎在 Sass 3.2 上运行有问题。我在使用 Compass.app 时没有遇到任何问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-29
    • 1970-01-01
    • 1970-01-01
    • 2013-10-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多