Rails失败以及奇怪的bundle安装 [英] Rails failing and strange bundle installations
问题描述
当我尝试运行 rails
时,它说:例如:
无法在任何源中找到sprockets-2.1.2
运行`bundle install`安装缺少的宝石。
顺便说一句 sprockets-2.1.2
已安装。 (我已经成功运行了 bundle install
)
但据我了解, rails
全局bin正在运行,因此我的 bundler 安装的本地gem无法访问。
我可以通过某种方式解决这个问题,而无需手动安装许多宝石:
gem install what - v哪个?
我已经试图运行rails作为
bundle exec rails ...
我没有运气:(b / b)
$ b
我正在使用RVM(如果这可能是问题的根源)
我非常抱歉,确实有一些RVM的问题,可能是因为它是由 JewelryBox (OS X rvm gui)自动安装的。从终端重新安装一切都像魅力一样!
结论:珠宝盒仍然是越野车,所以目前依赖它尤其是在 RVM 安装。
感谢所有试图帮助我的人!
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
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!
这篇关于Rails失败以及奇怪的bundle安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!