[英]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 我用“rails new”生成了应用程序并切换到该目录但是当我尝试使用“bundle install”时,我得到了
An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue. 安装debug_inspector(0.0.2)时发生错误,Bundler无法继续。 Make sure that
gem install debug_inspector -v '0.0.2'
succeeds before bundling. 在捆绑之前确保
gem install debug_inspector -v '0.0.2'
成功。
any suggestions? 有什么建议么?
This is a common error in older versions of ruby. 这是旧版ruby中的常见错误。 Updating ruby version to 2.1.0 or later will fix this issue.
将ruby版本更新到2.1.0或更高版本将解决此问题。
I had the same problem with my rails application. 我的rails应用程序遇到了同样的问题。 I'm running with JRuby on my Windows machine and this is a common problem for Windows.
我在Windows机器上运行JRuby,这是Windows的常见问题。 I had to find the gem which included that gem as a dependency and remove it from my gem file.
我必须找到包含该gem作为依赖项的gem并将其从我的gem文件中删除。
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). 在我的例子中,有一个gem导致这个名字:
gem 'web-console', '2.0.0.beta3'
(可能是宝石的旧版本,因为它是一个1岁的项目)。
You probably need to comment some gem and try to bundle until it works. 你可能需要评论一些gem并尝试捆绑直到它工作。 If the gem is essential to the project, you will have to find a way to compile the gem for windows.
如果gem对项目至关重要,那么你必须找到一种方法来为windows编译gem。
It may exist a way to check a tree of dependency to speed up the process. 它可能存在一种检查依赖树以加速进程的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.