软件包安装/更新:libv8(therubyracer)安装失败(使用本机扩展) [英] bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

查看:256
本文介绍了软件包安装/更新:libv8(therubyracer)安装失败(使用本机扩展)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装libv8(3.3.10.3)with with libv8(需要therubyracer)本地扩展/usr/local/rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in`在build_extensions中的块中解救':错误:失败
来构建gem原生扩展。 (Gem :: Installer :: ExtensionBuildError)

/usr/local/rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb
检查Python ... *** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。

我发现问题报告在therubyracer github网站上,它建议卸载并重新安装libv8,但这在我的Ubuntu 11.04机器上无法使用。任何想法 - 或者我坚持使用旧版本一段时间?



  gem'therubyracer'
gem'libv8','3.16.14.3'

应该有帮助。



另外,使用新的捆绑器会更好: gem install bundler --pre


I recently wanted to update my gem bundle but ran into installation problems with libv8 (requirement for therubyracer):

Installing libv8 (3.3.10.3) with native extensions /usr/local/rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed
 to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /usr/local/rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb 
Checking for Python...*** 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.

I have found the issue report on therubyracer github site and it suggests to uninstall and reinstall libv8, but this does not work on my Ubuntu 11.04 machine. Any ideas - or am I stuck with the old version for a while?

解决方案

Try that one for a little while:

gem 'therubyracer'
gem 'libv8', '3.16.14.3'

Should help.

Also it's better with a new bundler: gem install bundler --pre

这篇关于软件包安装/更新:libv8(therubyracer)安装失败(使用本机扩展)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆