How do I install 'byebug' for ruby on Windows?

后端 未结 3 1704
天命终不由人
天命终不由人 2021-01-23 20:24

I am new to ruby and trying to setup my dev environment (Windows 10). I have installed ruby and rails but cannot install byebug. From what I read I need the DevKit first. So I i

相关标签:
3条回答
  • 2021-01-23 20:53

    You have to install the version also like this:

    gem install byebug -v 5.0.0

    Here's the link if you need more information,

    https://rubygems.org/gems/byebug/versions/5.0.0

    0 讨论(0)
  • 2021-01-23 21:08

    I know this is a late reply!

    But when you face difficulties with DevKit, in this case with native gem such as buybug or json, you have to know that if your System type is 64 bit, you must use a RubyInstaller 64 bit, and DevKit 64 bit. Follow the same principle with a 32 bit system type, use a RubyInstaller 32bit, and DevKit 32bit.

    Also do not forget to run few commands after you installed, ruby and rails and DevKit, to do this go to the permanent installation of DevKit through terminal(cmd in windows) and run:

    Commands:

    1. ruby dk.rb init - this will create the configuration file
    2. then run ruby dk.rb install

    Cheers and Happy Coding. Ibrax.

    0 讨论(0)
  • 2021-01-23 21:10

    Found the problem. Looks like I was using the wrong DevKit version. I installed 64bit when I had a 32bit ruby installation

    0 讨论(0)
提交回复
热议问题