简体   繁体   中英

Rails: Bundle install not working

I've generated the app with "rails new" and switched to that directory but when I try to use "bundle install" I get

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue. Make sure that gem install debug_inspector -v '0.0.2' succeeds before bundling.

any suggestions?

This is a common error in older versions of ruby. Updating ruby version to 2.1.0 or later will fix this issue.

I had the same problem with my rails application. I'm running with JRuby on my Windows machine and this is a common problem for Windows. I had to find the gem which included that gem as a dependency and remove it from my gem file.

In my case, there was a gem causing this name : gem 'web-console', '2.0.0.beta3' (probably an old version of the gem since it's a 1 year old project).

You probably need to comment some gem and try to bundle until it works. If the gem is essential to the project, you will have to find a way to compile the gem for windows.

It may exist a way to check a tree of dependency to speed up the process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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