No source for ruby-2.0.0-p451 provided with debugger-ruby_core_source gem

后端 未结 9 611
孤街浪徒
孤街浪徒 2021-02-05 07:47

I\'ve seen very similar problems in other SO questions (e.g. No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem) as well as through a Google search, but n

相关标签:
9条回答
  • 2021-02-05 08:39

    Try install debugger without specifying a version and then run bundle install again.

    I had the same error, and it just worked, don't ask me why:

    $ gem install debugger
    $ bundle install
    
    0 讨论(0)
  • 2021-02-05 08:41

    there seems to be a problem with the compatibility of ruby version and debugger gem of rails. Running the below command worked for me:

     rvm ruby-2.0.0-p481
    

    If it doesn't work type

     rvm list
    

    will get a list of ruby version. Select an older ruby version, which might work.

    0 讨论(0)
  • 2021-02-05 08:43

    I ran into what I believe was the same problem while trying to install dubugger with ruby 2.0.0-p598.

    The gem debugger-ruby_core_source is a dependency of debugger and provides header files for specific versions of ruby that seem to be used while installing debugger. Look in debugger-ruby_core_source/lib/debugger/ruby_core_source/ to see which versions are supported—the header files are not provided for all ruby versions. In my case, they were not provided for version 2.0.0-p598.

    Looking at the README for debugger-ruby_core_source, there is a rake task for adding the required files for ruby versions.

    From the command line within the gem's directory, I ran

    $ rake add_source VERSION=2.0.0-p598 
    

    When I ran this task the first time, I received an error and was required to install the archive-tar-minitar gem before running the rake task again.

    After the rake task added the header files for my version, I was able to successfully install and run debugger.

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