【发布时间】:2015-08-12 15:48:44
【问题描述】:
有人在 osx yosmite 中成功安装了 ruby-debug 吗?我的 Mac 上有 ruby 2.2.1 和 rvm 1.26.11。但是,当我尝试安装 ruby-debug 时,它失败并出现以下错误:
~ --> gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
/Users/userid/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150812-26861-vlyh28.rb extconf.rb
Can't handle 1.9.x yet
*** 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=/Users/userid/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in /Users/userid/.rvm/gems/ruby-2.2.1/gems/linecache-0.46 for inspection.
Results logged to /Users/userid/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/linecache-0.46/gem_make.out
~ -->
~ --> 输入 rvm | head -1 rvm 是一个函数 ~ --> rvm -v rvm 1.26.11 (最新)作者:Wayne E. Seguin,Michal Papis [https://rvm.io/] ~ --> ruby -v ruby 2.2.1p85 (2015-02-26 修订 49769) [x86_64-darwin14]
【问题讨论】: