【问题标题】:mustang and v8 - install fails野马和 v8 - 安装失败
【发布时间】:2011-11-09 19:41:19
【问题描述】:

我正在尝试在 Ubuntu 上安装野马(使用捆绑安装)。

我已经在我的系统上安装了 scons。

我收到以下错误:

Installing mustang (0.2.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/scope/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -lv8... yes
checking for main() in -lpthread... yes
checking for string.h... yes
checking for ruby.h... yes
checking for v8.h... yes
checking for v8-debug.h... yes
checking for v8-profiler.h... no
creating Makefile

make
g++ -I. -I/home/scope/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/home/scope/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/scope/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_STRING_H -DHAVE_RUBY_H -DHAVE_V8_H -DHAVE_V8_DEBUG_H  -D_FILE_OFFSET_BITS=64  -Wall -g -rdynamic -fPIC -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC   -o v8_string.o -c v8_string.cpp
In file included from v8_string.cpp:2:
v8_cast.h:21: error: ‘RegExp’ was not declared in this scope
v8_cast.h:21: error: template argument 1 is invalid
make: *** [v8_string.o] Error 1

【问题讨论】:

  • Ubuntu 版本?你安装libv8-dev了吗?它适用于我的 11.10 ubuntu。
  • 跟踪器中有一个非常相似的问题,但它的最后一个条目是 2011 年 6 月 20 日,所以它看起来不会很快得到修复。

标签: ruby rubygems ruby-on-rails-3.1


【解决方案1】:

看来,mustang 需要 libv8 版本 >= 3.0,您可能遇到了在 Mustang 问题跟踪器上issue #14 报告的相同问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-20
    • 2016-02-12
    • 1970-01-01
    • 2013-02-24
    相关资源
    最近更新 更多