我有一个在使用RVM时创建的应用程序。我切换到rbenv,但无法让它工作。当我尝试运行服务器时,它显示找不到formastic gem:
Could not find formtastic-2.2.1 in any of the sources
Try running `bundle install`.如果我运行bundle install,它会提示我的包已经完成,但是formtastic没有列出。
但是,bundle show formtastic显示它已安装:
bundle show formtastic
/Users/me/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/formtastic-2.2.1但是服务器找不到它:
Macintosh-2:$ rails s
Could not find formtastic-2.2.1 in any of the sources
Try running `bundle install`.发布于 2013-01-03 00:17:18
除了运行命令rvm implode来删除RVM之外,我还必须从主目录中删除.rvm目录,因为系统似乎在那里查找gem:
rm -rf .rvm一旦我删除了它,我就可以启动服务器了。
https://stackoverflow.com/questions/14124162
复制相似问题