首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在WindowsRuby2.0上安装libv8 gem?

如何在WindowsRuby2.0上安装libv8 gem?
EN

Stack Overflow用户
提问于 2013-05-23 16:05:49
回答 1查看 738关注 0票数 0

我正在试着让设计器工作,看起来它需要更多的宝石。这需要libv8的gem。我得到一个错误,它找不到python2,所以我安装了Python2.7并将python.exe复制到python2.exe...并将C:\Python27添加到我的路径中。然后它就会抱怨:

代码语言:javascript
复制
$ gem install therubyracer
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer:
        ERROR: Failed to build gem native extension.

    c:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile
  File "<string>", line 1
    'import
          ^
SyntaxError: EOL while scanning string literal
  File "<string>", line 1
    'import
          ^
SyntaxError: EOL while scanning string literal
/bin/sh: C:devbinmake.EXE: command not found
C:\dev\bin\make.EXE: *** [x64.release] Error 127
c:/Ruby200-x64/lib/ruby/gems/2.0.0/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 'c:/
Ruby200-x64/lib/ruby/gems/2.0.0/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::ArchiveNot
Found)
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!'
        from extconf.rb:7:in `<main>'
Compiling v8 for x64
Using python
Using compiler: C:\dev\mingw\bin\g++.EXE
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


Gem files will remain installed in c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.17 for inspection.
Results logged to c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/libv8-3.11.8.17/ext/libv8/gem_make.out
EN

回答 1

Stack Overflow用户

发布于 2013-09-10 19:22:06

你可以在Windows上安装早期版本的libv8,但显然rubyracer使用的是3.11.8.5

代码语言:javascript
复制
gem install libv8 -v 3.11.8
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16708679

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档