Rails failing and strange bundle installations

蓝咒 提交于 2020-01-05 07:53:05

问题


There's one thing that I can't figure out.

When I try to run rails it says something like:

Could not find sprockets-2.1.2 in any of the sources
Run `bundle install` to install missing gems.

By the way sprockets-2.1.2 is installed. (I've run bundle install successfully)

But as far as I understand when I run rails the global bin is being run and so my local gems installed by bundler are not accessible by it.

Can I solve this somehow without having to manually install a lot of gems like:

gem install what -v which?

I've already tried to run rails as

bundle exec rails …

And I had no luck :(

I'm using RVM (if this can be the source of problem


回答1:


I'm terribly sorry. There was some problem with RVM indeed. Probably because it was automatically installed by JewelryBox (OS X rvm gui). After reinstallation from terminal everything works like charm!

Conclusion: JewelryBox is still buggy so at the moment it's bad idea to rely on it especially on RVM installation.

Thank you everyone who've tried to help me!



来源:https://stackoverflow.com/questions/8303404/rails-failing-and-strange-bundle-installations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!