我今天早些时候犯了一个错误,我在那里运行git clean -f
命令,它似乎已经消灭了rails和rvm。我试图重新安装两个,安装似乎工作,但当我尝试运行rails -v
我得到一个宝石加载错误。这告诉我安装没有正常工作,即使我在几分钟前看过铁路安装。有没有人对此引用有任何建议?或者你有解决这样的错误的经验吗?
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in
to_specs':Could not find 'railties' (>= 0) among 19 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in
to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in
gem'
来自/ usr / bin / rails:22:<main>'
答案 0 :(得分:0)
首先尝试简单的东西,捆绑安装,根据你的分支机构从git恢复。最后你需要卸载并重新安装
How can I uninstall Ruby on Rails on Mac OS X?
https://gauravsohoni.wordpress.com/2014/01/01/rvm-implode-and-rvm-install/