我在 ubuntu 12.04 上安装导轨。手动安装,使用这种方法: 如何在 Ubuntu 12.04 上正确安装 ruby 2.0.0?
然后:
gem update --system
gem install rails
现在,如果我运行命令“rails”,输出如下:
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'thread_safe' (~> 0.1) - did find: [thread_safe-0.1.2-java] (Gem::LoadError)
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1265:in `block in activate_dependencies'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1254:in `each'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1254:in `activate_dependencies'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1236:in `activate'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1268:in `block in activate_dependencies'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1254:in `each'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1254:in `activate_dependencies'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1236:in `activate'
from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in `gem'
from /usr/local/bin/rails:22:in `<main>'
编辑:
是的,我试过:
gem install --version 0.1.2 thread_safe
gem uninstall thread_safe
gem install thread_safe
重新安装 thread_safe rails 后给了我同样的错误