【问题标题】:Failed to build gem native extension while installing therubyracer安装 therubyracer 时无法构建 gem 原生扩展
【发布时间】:2015-09-14 16:18:32
【问题描述】:

我想知道我将 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

【问题讨论】:

    标签: ruby-on-rails ruby therubyracer


    【解决方案1】:

    来自错误信息:

    libv8 需要 python 2

    来自您的帖子:

    我已经安装了 3.4.3 python

    Python 2 != python 3.

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • PATH 表明他已经在使用 DevKit 或同名的东西:which: no python in (.;C:\RoR\DevKit\bin...
      猜你喜欢
      • 2014-06-25
      • 2021-05-28
      • 1970-01-01
      • 2012-09-15
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多