首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法安装therubyracer arm chromebook

无法安装therubyracer arm chromebook
EN

Stack Overflow用户
提问于 2013-05-16 18:51:47
回答 1查看 911关注 0票数 0

在尝试安装therubyracer gem后出现以下错误。

当我已经下载了gem的时候,我不知道为什么它会抱怨v8。

我最初在安装libv8时遇到了问题,但后来设法安装了--system-v8标志,但现在它的rubyracer发出了抱怨。

代码语言:javascript
运行
复制
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /home/glenn/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb 
checking for main() in -lpthread... yes
checking for v8.h... no
*** 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=/home/glenn/.rvm/rubies/ruby-1.9.3-p392/bin/ruby
    --with-pthreadlib
    --without-pthreadlib
    --enable-debug
    --disable-debug
    --with-v8-dir
    --without-v8-dir
    --with-v8-include
    --without-v8-include=${v8-dir}/include
    --with-v8-lib
    --without-v8-lib=${v8-dir}/
/home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/libv8-3.11.8.17/ext/libv8/location.rb:50:in `configure': You have chosen to use the version of V8 found on your system (Libv8::Location::System::NotFoundError)
and *not* the one that is bundle with the libv8 rubygem. However,
it could not be located. please make sure you have a version of
v8 that is compatible with 3.11.8.17 installed. You may
need to special --with-v8-dir options if it is in a non-standard
location

thanks,
The Mgmt

    from /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/libv8-3.11.8.17/lib/libv8.rb:7:in `configure_makefile'
    from extconf.rb:32:in `<main>'


Gem files will remain installed in /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/therubyracer-0.11.4 for inspection.
Results logged to /home/glenn/.rvm/gems/ruby-1.9.3-p392/gems/therubyracer-0.11.4/ext/v8/gem_make.out
EN

回答 1

Stack Overflow用户

发布于 2013-05-16 19:04:42

我假设您在Chromebook上使用Linux发行版(直接或通过chroot)。这是正确的吗?

它正在寻找v8.h,因此您还需要安装v8开发包:在Debian/Ubuntu上是libv8-dev (在RedHat和类似系统上是-devel )。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16585493

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档