[英]Bundler could not find compatible versions for gem “bundler”: In Gemfile: rails (= 3.0.0) was resolved to 3.0.0, which depends on bundler (~> 1.0.0)
I just bought a new MBP and I'm trying to execute a ruby app. 我刚刚购买了一个新的MBP,并且正在尝试执行ruby应用程序。 After I followed this tutorial Install Ruby on Rails 5.0 · macOS Sierra , I'm still having this issue: 在按照本教程进行安装Ruby on Rails 5.0·macOS Sierra之后 ,我仍然遇到此问题:
MBP:test_app $ gem install rails
Successfully installed rails-5.0.1
Parsing documentation for rails-5.0.1
Done installing documentation for rails after 0 seconds
1 gem installed
MBP:test_app $ rails new .
Could not find gem 'rails (= 3.0.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Try running `bundle install`.
Then, I tried: 然后,我尝试:
$ bundle install
And I got the following error: 我得到了以下错误:
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/..
Fetching dependency metadata from http://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) was resolved to 3.0.0, which depends on
bundler (~> 1.0.0)
Current Bundler version:
bundler (1.13.7)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (~> 1.0.0)', which is required by gem 'rails (=
3.0.0)', in any of the sources.
I guess I've already tried everything; 我想我已经尝试了一切; installed bundler 1.0.0, reinstalled, deleted gems, removed ruby, rails, rvm, and installed everything again. 安装了捆绑程序1.0.0,重新安装,删除了gem,删除了ruby,rails,rvm,然后再次安装了所有内容。
Please, any advice? 拜托,有什么建议吗?
Solved!! 解决了!!
The problem was solved removing or commenting config.action_view.debug_rjs = true
in development.rb
file. 解决了问题,在development.rb
文件中删除或注释config.action_view.debug_rjs = true
。
Thanks to everyone! 谢谢大家!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.