捆绑安装/更新:libv8 (therubyracer) 安装失败(带有本机扩展) [英] bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

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

问题描述

我最近想更新我的 gem 包,但遇到了 libv8 的安装问题(therubyracer 的要求):

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.

我在 therubyracer github 站点上找到了问题报告,它建议卸载并重新安装 libv8,但这在我的 Ubuntu 11.04 机器上不起作用.有什么想法 - 还是我在旧版本上停留了一段时间?

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?

推荐答案

试一试:

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

应该有帮助.

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

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

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

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