简体   繁体   English

安装gem bundler时出错

[英]Error when installing gem bundler

I tried to install a ruby application. 我试图安装一个ruby应用程序。 when it comes to a point where I install a bundle, I get the following error: 当涉及到我安装捆绑包时,我收到以下错误:

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    activeadmin (>= 0) ruby depends on
      bundler (< 2.0, >= 1.3.0) ruby

  Current Bundler version:
    bundler (1.1.4)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

when I tried gem install bundler everything seems to be correct with the following output 当我尝试使用gem install bundler时,以下输出似乎都是正确的

Successfully installed bundler-1.6.2
1 gem installed

but after re-entering install bundle, i get the same error as above... even when i uninstall bundler, i get this error-message... 但重新进入安装捆绑后,我得到与上面相同的错误...即使我卸载捆绑包,我收到此错误消息...

what goes wrong? 出了什么问题?

thanks for your help.. heiko 谢谢你的帮助.. heiko

Try the following way and install again 尝试以下方式并再次安装

gem uninstall bundler
gem install bundler --version '1.0.0'

Specify bundler version according to application need. 根据应用需要指定Bundler版本。

OR 要么

To update all your gems: 要更新所有宝石:

gem update --system
gem update

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM