简体   繁体   中英

Ruby on Rails gem 'byebug' installing error

这是“ byebug”安装的错误。

How can I fix this error? This issue is created when I check the rails version in a demo created website using this command.

you can also use another debugger gem 'pry', '0.9.12.6' and remove gem 'byebug' .

Then run bundle install

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

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

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.

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 !

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

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! :-)

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