运行安装rvm的标准程序,也安装了Ruby 1.9.3,然后为rake,compass,sass,bundler和guard安装gems,然后将我的gems / bin目录添加到我的路径中,我收到以下消息在运行罗盘上:
/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 install compass
语法安装,我也运行gem update --system
更多信息!
apt-get
安装ruby-compass包。这工作正常,但现在另一个gem(在apt-get上不可用)报告来自/home/m1ke/.rvm/gems/ruby-1.9.9-p362/
但来自/usr/share/ruby-1.9.1/
的错误,我假设安装了Compass apt-get。所以现在我可能有两个Ruby版本在争吵...... 答案 0 :(得分:1)
只需运行rubygems-bundler-uninstaller
即可立即解决问题。当我搜索我的错误时,在这里发布此而不是仅仅链接作为链接的线程没有出现,因为我的错误是语法错误,而链接的帖子有“找不到文件”错误。