Ruby 野马和v8-安装失败

Ruby 野马和v8-安装失败,ruby,rubygems,ruby-on-rails-3.1,Ruby,Rubygems,Ruby On Rails 3.1,我正试图在Ubuntu上安装mustang(带bundle安装) 我已经在我的系统上安装了SCON 我得到以下错误: 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 e

我正试图在Ubuntu上安装mustang(带bundle安装)

我已经在我的系统上安装了SCON

我得到以下错误:

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

看起来野马需要libv8版本>=3.0,您可能遇到了野马问题跟踪程序中报告的相同问题。

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