0

前几天安装 RVM 后,我不能再使用compass watch了。

我试过更新系统,再次安装指南针,以及sass,都无济于事。

这是我在终端中遇到的错误:

/Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/definition.rb:16:in `build': /Gemfile not found (Bundler::GemfileNotFound)
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:148:in `definition'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/bin/compass:26:in `<top (required)>'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `load'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `<main>'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'

我已尝试按此问题使用bundle update sass-rails出现错误Could not locate Gemfile

我也尝试按照这里的建议无济于事。

在这一点上,我有点失落。我是 Ruby 世界和 RVM 的新手,而且一开始我并不是最熟练的终端用户。

感谢您的任何帮助或见解-

4

2 回答 2

3

/Gemfile not found是旧版本rubygems-bundlergem 中的一个错误,运行:

rvm @global do gem update rubygems-bundler

它应该可以正常工作

于 2013-10-31T11:55:48.080 回答
0

我没有关于如何解决问题本身的答案,但我确实只是暂时删除了它。

我曾经根据这篇文章从我的机器rvm implode中删除。rvm

之后一切正常。不幸的是,这将使我对 Ruby 世界的试验推迟一段时间,因为我没有时间弄清楚如何在没有它看似带来的复杂性的情况下拥有 RVM。

最好的,

于 2013-10-30T22:47:41.217 回答