简体   繁体   English

捆绑安装失败,并显示“错误:未安装宝石捆绑器”

[英]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.

相关问题 宝石安装捆绑器&&捆绑安装错误 - Gem install bundler && bundle install error 已安装RVM捆绑器错误:未安装宝石捆绑器,请先运行`gem install bundler` - RVM bundler installed ERROR: Gem bundler is not installed, run `gem install bundler` first Bundler尝试并且无法安装已成功安装的pg gem - Bundler tries and fails to install the pg gem, which is already successfully installed 即使安装了bundler-1.1.3,“ bundle install”也会失败 - “bundle install” fails even though bundler-1.1.3 is installed gem install bundler错误 - gem install bundler error 在postgresql gem上捆绑安装失败。 (是的,安装了postgres) - Bundle install fails on postgresql gem. (Yes postgres is installed) EC2-未安装宝石捆绑器,请首先运行`gem install bundler` - EC2 - Gem bundler is not installed, run `gem install bundler` first 捆绑安装错误,原因是(捆绑商找不到与“捆绑商”宝石兼容的版本) - Getting error on bundle install as (Bundler could not find compatible versions for gem “bundler”) 捆绑器:在使用 gem 进行捆绑安装期间找不到带有可执行捆绑包 (Gem::GemNotFoundException) 的 gem bundler (>= 0.a) - Bundler: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem “ gem install bundler --version = 0.8.1”未安装可执行文件 - “gem install bundler --version=0.8.1” doesn't install the bundle executable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM