Questions tagged «therubyracer»

12
osx小牛上的“ gem安装therubyracer -v'0.10.2'”未安装
尝试使用“ gem install therubyracer -v'0.10.2'”在特立独行上安装therubyracer,但出现以下错误: /Users/dennischen/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for main() in -lobjc... yes creating Makefile make compiling rr.cpp clang: warning: argument unused during compilation: '-rdynamic' rr.cpp:48:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 1 warning generated. compiling v8.cpp clang: warning: argument unused during compilation: '-rdynamic' compiling v8_array.cpp …

14
therubyracer-Gem :: Ext :: BuildError:错误:无法构建gem本机扩展
我正在尝试在Mavericks上安装以下gem版本 libv8(3.16.14.3) therubyracer(0.12.1) 显然,therubyracer宝石依赖于libv8。 1)安装libv8 什么是libv8?我的研究似乎表明它是Google Chrome使用的某种javascript库? 我在安装它时遇到了麻烦,但是这篇出色的文章既包含了我的错误,也提供了关于如何绕过它的解释清楚的答案。 所以我安装libv8了 gem install libv8 -- --with-system-v8 据我了解,这安装了gem,但是使用了v8库的本地系统安装,而不是... gem随附的版本?无论哪种方式,它都是成功的。 2)安装rubyracer 在下一步中,我无法安装therubyracergem。我不太确定这个gem的功能,只是我要尝试的Rails项目的依赖项bundle install。 它给了我以下错误: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/jeeves.butler/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for main() in -lpthread... yes checking for main() in -lobjc... yes checking for v8.h... no *** extconf.rb failed *** …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.