How can I fix this error? This issue is created when I check the rails version in a demo created website using this command.
问题:
回答1:
you can also use another debugger gem 'pry', '0.9.12.6' and remove gem 'byebug' .
Then run bundle install
回答2:
The output in yellow is asking you to run bundle install
instead of gem install
You should do that.
Update:
It looks like the windows version build is failing. Only passes for ruby 2.0.0 but not for above versions.
You can check the status at byebug's github project and the windows build status
回答3:
The compiler is set to treat warnings as errors. You can compile the extension manually after switching off -Werror in the Makefile. If that works, you must register the gem also manually like so:
gem spec [something like Ruby21/lib/ruby/gems/2.1.0]/cache/byebug-5.0.0.gem --ruby > \
[something like Ruby21/lib/ruby/gems/2.1.0]/specifications/byebug-5.0.0.gemspec
回答4:
This has nothing to do with the build (it's passing in the released version, and in any case, it's not failing at compile time).
It might or might not be problem in byebug (I think it's more likely something with your Ruby / DevKit installation though), but it's not manifested in the CI build for sure.
That being said, the error can certainly be solved by just removing the gem from the Gemfile and running bundle install
again.
回答5:
So I had the same problem for ruby version 2.1.7 and after some reading this is how i solved it . I just replaced gem 'byebug' with gem 'pry' and it just worked like magic !
回答6:
I solved this reinstalling my devkit in windows.
First I went to mi devkit folder and i wrike
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install -f
One line by one. Finally try again
bundle install
回答7:
I was also facing this issue for past few hours.
Then, I updated the Ruby version from Ruby2.2.6 to Ruby 2.3.3 and updated the devkit too.
It worked! :-)