问题
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