我对Rails和Ruby相对较新,但是当我尝试执行rails -s或rails -v时出现此错误
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem i18n (>= 0.6.4, ~> 0.6) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
from /usr/local/rvm/gems/ruby-2.1.1/bin/rails:22
from /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15
不确定导致它的原因,或者我如何解决它。
编辑
尝试捆绑安装后,我收到此错误:
Gemfile syntax error compile error
on line 73: syntax error, unexpected ':', expecting $end
gem 'thin', group: [:production]
^
我的Gemfile中的第73行
gem 'thin', group: [:production]
编辑2
答案 0 :(得分:0)
语法已关闭。只需使用此
group :production do
gem 'thin'
end