Tag: libv8

gem安装libv8 – 版本'3.11.8.17'在ruby(Windows)

问题如下。 Error installing libv8: ERROR: Failed to build gem native extension. D:/Ruby193/bin/ruby.exe extconf.rb creating Makefile The system can not find the specified path D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:49:in'setup_python!':libv8 requires python 2 to be installed in order to build,but it is currently not available (RuntimeError) from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:35:in 'block in build_libv8!' from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'chdir' from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'build_libv8!' from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'install!' from […]

therubyracer – Gem :: Ext :: BuildError:错误:无法构buildgem原生扩展

我正在尝试在小牛上安装以下的gem版本 libv8(3.16.14.3) therubyracer(0.12.1) 显然therubyracergem取决于libv8。 1)安装libv8 什么是libv8? 我的一点研究似乎暗示它是Google Chrome使用的某种JavaScript库? 我在安装时遇到了麻烦,但是这个好post既有我的错误,也有关于如何绕过它的一个很好解释的答案。 所以我安装了libv8 gem install libv8 — –with-system-v8 这是我的理解,这安装的gem,但使用我的本地系统安装的V8库,而不是…与版本的gem? 无论哪种方式,它都是成功的。 2)安装therubyracer 在下一步,我遇到了安装therubyracergem的麻烦。 我不太清楚这个gem是干什么的,只是这是一个我试图bundle install的rails项目的依赖项。 它给了我以下错误: 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 *** Could not create […]

安装libv8时出错:错误:无法构buildgem本机扩展

我做了一个铁轨项目, rails new test_bootstrap. 成功了。 转移到项目目录并添加了gem gem "therubyracer" gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem "twitter-bootstrap-rails" 并运行 bundle install 之后,我有这个错误。 Installing libv8 (3.16.14.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb creating Makefile 지정된 경로를 찾을 수 없습니다. 지정된 경로를 찾을 수 없습니다. 지정된 경로를 찾을 […]

在OS X 10.9+上安装libv8 gem

我正在尝试安装libv8 3.16.14.3,但在使用最新的stable rvm和ruby-1.9.3-p125的OSX Mavericks上出现错误。 这是运行命令“gem install libv8”的输出: ~/src(branch:master) » gem install libv8 Fetching: libv8-3.16.14.3.gem (100%) Building native extensions. This could take a while… ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /Users/me/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.5 Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially […]