运行了安装 rvm 的标准过程,它还安装了 Ruby 1.9.3,然后为 rake、compass、sass、bundler 和 guard 安装 gems,然后将我的 gems/bin 目录添加到我的路径中,我在运行 compass 时收到以下消息:
/home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/dsl.rb:35:in `rescue in eval_gemfile': Gemfile syntax error: (Bundler::GemfileError)
gem "guard", "~> 1.0.1"
^
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/dsl.rb:32:in `eval_gemfile'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/dsl.rb:7:in from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler.rb:112:in `setup'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/gems/compass-0.12.2/bin/compass:26:in `<top (required)>'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/bin/compass:19:in `load'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/bin/compass:19:in `<main>
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
from /home/m1ke/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>'
所有 gem 都使用标准gem install compass
语法安装,我也运行过gem update --system
更多信息!
- 相同的 gem 在我的 Windows 安装上运行良好,使用 Windows RubyInstaller 安装。
- 没有任何响应,我尝试删除 gem 并从
apt-get
. 这工作正常,但现在另一个 gem(apt-get 上不可用)报告错误来自两者,但我假设 Compass apt-get 安装/home/m1ke/.rvm/gems/ruby-1.9.9-p362/
也来自该错误。/usr/share/ruby-1.9.1/
所以现在我可能有两个 Ruby 版本在战斗......