0

我想知道我将 uru 与两个版本的 Ruby 一起使用可能会有所帮助,因为 nog​​okiri 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
4

2 回答 2

2

从错误消息:

libv8 需要 python 2

从你的帖子:

我安装了 3.4.3 python

Python 2 != 蟒蛇 3。

于 2015-09-17T09:56:58.557 回答
0

我无法通过您的路径来判断,但是您是否尝试过使用Devkit for RubyGems?我记得当我在我的 Windows 机器上使用 Ruby raw 时,它非常轻松。

于 2015-09-14T17:17:12.407 回答