gpt4 book ai didi

ruby-on-rails-3.1 - 安装debugger-linecache时出错:错误:无法构建gem native 扩展

转载 作者:行者123 更新时间:2023-12-03 14:30:37 24 4
gpt4 key购买 nike

我正在尝试捆绑安装,但它显示上述错误或调试器。请从终端中找到详细的错误

Installing debugger-linecache (1.1.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/local/ruby/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.2-p0 provided with debugger-ruby_core_source gem.
**************************************************************************
*** 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=/usr/local/ruby/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib


Gem files will remain installed in /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out

An error occured while installing debugger-linecache (1.1.1), and Bundler cannot continue.
Make sure that `gem install debugger-linecache -v '1.1.1'` succeeds before bundling.


如果我在终端中输入ruby-v,我会得到
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

如果执行 gem install debugger-linecache,仍然会出现相同的错误。
如何解决。请帮忙??

最佳答案

我有一个非常类似的错误,但在ruby 1.9.3上。运行:

gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p286/


它为我工作。归功于 this answer

关于ruby-on-rails-3.1 - 安装debugger-linecache时出错:错误:无法构建gem native 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13108299/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com