在捆绑安装错误时:
Gem::Installer::ExtensionBuildError: ERROR:未能构建创业板本机扩展。
/home/launchpad/.rbenv/versions/1.9.3-p448/bin/ruby extconf.rb 无法处理1.9.x,但* extconf.rb失败*由于某种原因,无法创建Makefile,可能缺少必要的库和/或标题。有关更多细节,请查看mkmf.log文件。您可能需要配置选项。
提供配置选项:--with-opt-dir --with-opt-dir-with-opt-include=${opt-dir}/include-with-opt-lib=${opt-dir}/lib-with-make-prog- configuration -srcdir=.-curdir --ruby=/home/launchpad/.rbenv/versions/1.9.3-p448/bin/ruby
Gem文件将继续安装在/home/launchpad/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/linecache-0.46中以供检查。登录到/home/launchpad/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/linecache-0.46/ext/gem_make.out的结果
安装linecache (0.46)时发生错误,Bundler无法继续。确保gem install linecache -v '0.46'在捆绑之前就成功了。
发布于 2013-11-09 04:17:31
您将看到错误“还不能处理1.9.x”,因为linecache宝石与Ruby1.9.x不兼容。看起来您使用的是Ruby1.9.3-P44。
还有一个名为linecache19的gem,您可以尝试它与1.9.x兼容。
或者,你可以:
有关更多信息,请访问look at this question
https://stackoverflow.com/questions/19473737
复制相似问题