[英]bundle install fails with 'ERROR: Gem bundler not installed'
I have bundler-1.1.3 installed. 我安装了bundler-1.1.3。 I have an app that I am trying to get to run. 我有一个要尝试运行的应用程序。 but when I do 但是当我这样做
$cd my_app
$bundle install
the command fails with this error: 该命令失败,并显示以下错误:
ERROR: Gem bundler not installed
I can run bundle install from anywhere else on the sytem, but not within the app folder. 我可以从系统的任何其他位置运行捆绑安装,但不能在app文件夹中运行。 What could be the problem ? 可能是什么问题呢 ?
The .rvmrc file in the directory of the app is saying it needs 1.9.2 to run. 该应用程序目录中的.rvmrc文件表示它需要1.9.2才能运行。 RVM has a concept of gem sets that are associated with different versions of ruby on your comptuer. RVM具有与计算机上不同版本的红宝石相关联的宝石集的概念。 You probably don't have the bundler gem installed under your 1.9.2 version of ruby but another version, perhaps 1.8.7 or 1.9.3. 您可能没有在1.9.2版本的ruby下安装bundler gem,而是在另一个版本(也许是1.8.7或1.9.3)下安装了gem。
$ cd my_app
$ rvm use 1.9.2
$ gem install bundle
$ bundle install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.