首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Bundler安装调试器1.6.8失败

Bundler安装调试器1.6.8失败
EN

Stack Overflow用户
提问于 2014-07-12 03:57:58
回答 2查看 7.5K关注 0票数 16

我试着查看了一些these答案,但似乎都不起作用。这就是错误。

代码语言:javascript
复制
funk@funktop ~/rails_projects/hearingtracker $ gem install debugger -v '1.6.8'
Fetching: columnize-0.8.9.gem (100%)
Successfully installed columnize-0.8.9
Fetching: debugger-ruby_core_source-1.3.5.gem (100%)
Successfully installed debugger-ruby_core_source-1.3.5
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/funk/.rvm/rubies/ruby-2.1.2/bin/ruby 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/funk/.rvm/rubies/ruby-2.1.2/bin/ruby
/home/funk/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb:1573:in `stat': No such file or directory @ rb_file_s_stat - ./212/ruby_debug.h (Errno::ENOENT)
    from /home/funk/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb:1573:in `block in fu_each_src_dest'
    from /home/funk/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb:1587:in `fu_each_src_dest0'
    from /home/funk/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb:1571:in `fu_each_src_dest'
    from /home/funk/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb:399: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/funk/.rvm/gems/ruby-2.1.2/gems/debugger-1.6.8 for inspection.
Results logged to /home/funk/.rvm/gems/ruby-2.1.2/extensions/x86_64-linux/2.1.0/debugger-1.6.8/gem_make.out
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-12 04:06:38

Ruby gem不能与debugger 2.1+一起使用。相反,请尝试使用byebug

票数 36
EN

Stack Overflow用户

发布于 2018-09-06 19:23:53

现在byebug需要Ruby版本的>= 2.2.0

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24705579

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档