- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我最近从 github 上 fork 了一个存储库,但是,当我尝试运行“bundle install”时,我得到以下错误输出:
Robert-Quinns-MacBook-Pro:~ robertquinn$ gem install therubyracer
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/Users/robertquinn/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.5.4
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
File "./gyp-mac-tool", line 167
fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
^
SyntaxError: invalid syntax
make[1]: *** [/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a] Error 1
make: *** [x64.release] Error 2
/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each'
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!'
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!'
from extconf.rb:7:in `<main>'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=x64 \
-S.x64 -Dv8_can_use_vfp_instructions=true
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o
LIBTOOL-STATIC /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a
Gem files will remain installed in /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17 for inspection.
Results logged to /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/gem_make.out
Robert-Quinns-MacBook-Pro:~ robertquinn$
Robert-Quinns-MacBook-Pro:~ robertquinn$
以下是我尝试过的一些方法:
gem uninstall libv8
brew install v8
gem install therubyracer
还有:
RUBYOPT=-rrubygems gem install therubyracer
有什么想法吗?
编辑
输入这些命令后:
$ brew tap homebrew/dupes
$ brew install apple-gcc42
这里是完整的输出,包括这些命令的结果:
Robert-Quinns-MacBook-Pro:~ robertquinn$ brew tap homebrew/dupes
Cloning into /usr/local/Library/Taps/homebrew-dupes...
remote: Counting objects: 894, done.
remote: Compressing objects: 100% (488/488), done.
remote: Total 894 (delta 491), reused 795 (delta 406)
Receiving objects: 100% (894/894), 154.86 KiB | 235 KiB/s, done.
Resolving deltas: 100% (491/491), done.
Tapped 41 formula
Robert-Quinns-MacBook-Pro:~ robertquinn$ brew install apple-gcc42
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg
######################################################################## 100.0%
==> Caveats
NOTE:
This formula provides components that were removed from XCode in the 4.2
release. There is no reason to install this formula if you are using a
version of XCode prior to 4.2.
This formula contains compilers built from Apple's GCC sources, build
5666.3, available from:
http://opensource.apple.com/tarballs/gcc
All compilers have a `-4.2` suffix. A GFortran compiler is also included.
==> Summary
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3: 104 files, 75M, built in 110 seconds
Robert-Quinns-MacBook-Pro:~ robertquinn$ gem install therubyracer
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/Users/robertquinn/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.5.4
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
File "./gyp-mac-tool", line 167
fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
^
SyntaxError: invalid syntax
make[1]: *** [/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a] Error 1
make: *** [x64.release] Error 2
/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each'
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!'
from /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!'
from extconf.rb:7:in `<main>'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=x64 \
-S.x64 -Dv8_can_use_vfp_instructions=true
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o
CXX(target) /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o
LIBTOOL-STATIC /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a
Gem files will remain installed in /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17 for inspection.
Results logged to /Users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/gem_make.out
Robert-Quinns-MacBook-Pro:~ robertquinn$
最佳答案
它失败了,因为你的系统上没有编译器。
安装gcc编译器
例如:https://github.com/kennethreitz/osx-gcc-installer
或(自制软件):
$ brew tap homebrew/dupes
$ brew install apple-gcc42
关于ruby - 无法安装 therubyracer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16636251/
我一直在尝试安装 therubyracer 并尝试了几乎所有我在 stackoverflow 上能找到的东西,但它似乎仍然给我同样的错误。我也是 ruby on rails 的新手,所以我无法准确
我一直在努力让 twitter-bootstrap-rails gem 在我的 Windows 机器上工作,但在尝试安装“therubyracer” gem 时遇到了错误,该 gem 是旧版本的 le
我正在尝试在 Debian 6 上执行 gem install therubyracer。我在 1.9.3 上使用 rbenv。当我最初这样做时,它提示 libv8,所以我做了一个 gem insta
我最近从 github 上 fork 了一个存储库,但是,当我尝试运行“bundle install”时,我得到以下错误输出: Robert-Quinns-MacBook-Pro:~ robertqu
调用 V8::Context#load 时,therubyracer 提示 Unexpected token [ at /home/dm/contra/app/assets/javascripts/l
一旦我将一个方法存储在 V8::Context 中,该方法的所有后续实例都以任何名称存储在任何上下文中,其行为与初始实例一样(即,就好像原始实例已再次存储一样)。 我尝试通过以下方式隔离/演示问题:
我在 Windows Server 2012 R2 上安装 therubyracer 时遇到问题。 首先,我尝试使用 gem install therubyracer -v '0.12.3' 给出了这
我在捆绑安装更新时收到错误消息。这是我的 gem 文件: source 'https://rubygems.org' gem 'rails', '3.2.1' # Bundle edge Rails
我制作了一个 Rails 3.1 PoC 应用程序,它也通过改编 railstutorial.org 书中的示例使用 haml,并且在本地一切正常。 但是当我尝试推送到 heroku 时, theru
我单独安装了 libv8 gem,但当我尝试安装 therubyracer gem 时,出现以下错误: Building native extensions. This could take a w
我正在关注 ruby on rails getting started guide在新安装的 Ubuntu 12.10 上。我准备运行 rake db:create 但出现以下错误: rake 中止了
我正在运行 Centos 6.5、apache2 和 ruby 2.1.2p95 并尝试为我的 sinatra 应用程序启动 Puma 服务器。它仍然无法提供极长的输出,但看起来真正的错误是: /
我已经安装了 RVM,然后安装了 Jruby,这是我在输入时得到的版本:jruby -v: jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (
我无法在 Ubuntu 12.04 中安装 therubyracer-heroku。我在互联网上的一两个其他地方看到过这个错误,但没有解决方案。我运行的命令是: sudo gem install th
如何更换 therubyracer gem ?我真的被困住了。 我们一直在使用therubyracer我们的 Rails Assets 管道的 gem。但是,它使用的依赖项已过期并具有安全漏洞。最新版
我已经在 Windows 上平静地开发了几周,没有添加任何 gem,今天我决定进行 bundle 更新,但我无法完成这个名为 therubyracer 的 gem。我已经安装了 devkit,并且它正
我有一个简单的 Ember 应用程序,用于从用户收集有关气井体积的数据。它是一个与服务器同步的移动应用程序,所以我尝试使用 CouchDB 来处理数据。客户端需要 SQL 存储中的数据,因此我尝试通过
我是 ruby 新手。当我尝试“gem install therubyracer”时,它显示以下错误: C:\Users\Desktop>gem install therubyracer Tempor
是否有安装 therubyracer gem 的方法,即需要在 Windows 中运行 RoR 项目? 我已经尝试过正常的方式,但它不会然后我尝试安装 cygwin 然后尝试安装 gem,但仍然没有运
我有这个设置: OSX El Capitan 10.11.1 Ruby 2.0.0p247 (Rbenv)(我没有 RVM) rails 4.1.14.1 我跑 bundle install一切看起来
我是一名优秀的程序员,十分优秀!