Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Unclear install error for ruby 2 #140

Description

@btakita

There should be a clear error message that states debugger is not compatible with Ruby 2.

I received the following error when attempting an install:

$ gem install debugger
Fetching: columnize-0.9.0.gem (100%)
Successfully installed columnize-0.9.0
Fetching: debugger-ruby_core_source-1.3.7.gem (100%)
Successfully installed debugger-ruby_core_source-1.3.7
Fetching: debugger-linecache-1.2.0.gem (100%)
Successfully installed debugger-linecache-1.2.0
Fetching: debugger-1.6.8.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing debugger:
    ERROR: Failed to build gem native extension.

    /home/phoenix/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20150119-8346-1n464ri.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/phoenix/.rbenv/versions/2.2.0/bin/$(RUBY_BASE_NAME)
/home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1391:in `initialize': No such file or directory @ rb_sysopen - ./220/ruby_debug.h (Errno::ENOENT)
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1391:in `open'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1391:in `copy_file'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:485:in `copy_file'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:402:in `block in cp'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1570:in `block in fu_each_src_dest'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1584:in `fu_each_src_dest0'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:1568:in `fu_each_src_dest'
    from /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/2.2.0/fileutils.rb:401:in `cp'
    from extconf.rb:83:in `block in <main>'
    from extconf.rb:82:in `each'
    from extconf.rb:82:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/debugger-1.6.8 for inspection.
Results logged to /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/debugger-1.6.8/gem_make.out

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions