繁体   English   中英

安装therubyracer时无法构建gem本机扩展

[英]Failed to build gem native extension while installing therubyracer

我想知道我将uru与两个版本的Ruby一起使用可能会有所帮助,因为nogokiri gem不支持ruby 2.2。 我也不知道为什么为什么要说一些关于python的信息(我安装了3.4.3 python)

C:/Ruby21-x64/bin/ruby.exe extconf.rb
creating Makefile
which: no python in (.;C:\RoR\DevKit\bin;C:\RoR\DevKit\mingw\bin;C:\Ruby21-x64\bin;_U_;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\Ruby22-x64\bin; C:\SQLite;C:\Ruby22-x64\bin;C:\SQLite)
System cannot find the path specified.
which: no python in (.;C:\RoR\DevKit\bin;C:\RoR\DevKit\mingw\bin;C:\Ruby21-x64\bin;_U_;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\ProgramData\Oracle\Java\javapath;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\Ruby22-x64\bin; C:\SQLite;C:\Ruby22-x64\bin;C:\SQLite)
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.11/ext/libv8/builder.rb:81:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.11/ext/libv8/builder.rb:55:in `block in build_libv8!'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.11/ext/libv8/builder.rb:52:in `chdir'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.11/ext/libv8/builder.rb:52:in `build_libv8!'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.11/ext/libv8/location.rb:24:in `install!'
    from extconf.rb:7:in `<main>'

extconf failed, exit code 1

从错误消息:

libv8需要python 2

从您的帖子中:

我已经安装了3.4.3 python

Python 2!= python 3。

我无法确定您的路线,但是您是否尝试过将Devkit用于RubyGems 我记得当我在Windows机器上使用Ruby raw时,这非常轻松。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM