相关疑难解决方法(0)

宝石安装libv8 - 版本'3.11.8.17'在ruby(windows)上

问题如下.

Error installing libv8:
ERROR: Failed to build gem native extension.

    D:/Ruby193/bin/ruby.exe extconf.rb
    creating Makefile
    The system can not find the specified path

        D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:49:in'setup_python!':libv8 requires python 2 to be installed in order to build,but it is currently not available (RuntimeError)
             from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:35:in 'block in build_libv8!'
             from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'chdir'
             from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'build_libv8!'
             from D:Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'install!'
             from extconf.rb:7: in '<main>'
I have installed the python27 and add the path.

python --version
Python 2.7.4
Run Code Online (Sandbox Code Playgroud)

然后我检查代码如下.

 def setup_python!
      # If python v2 cannot be …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails libv8

43
推荐指数
3
解决办法
3万
查看次数

由于 libv8,我无法运行“捆绑安装”

我在 Windows 10 上运行这个。我正在尝试构建这个存储库(如果 Gemfile 和 Gemfile.lock 有帮助): https: //github.com/huginn/huginn

Error:

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8

C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20200209-30680-1j9g8t0.rb extconf.rb

creating Makefile

The system cannot find the path specified.

The system cannot find the path specified.

The system cannot find the path specified.

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:57:in

`setup_python!': libv8 requires python 2 to be installed in order to build, but

it is currently not available (RuntimeError)

from

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:39:in

`build_libv8!'

from

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8/location.rb:24:in

`install!'

from extconf.rb:7:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1 …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails

1
推荐指数
1
解决办法
4290
查看次数

标签 统计

ruby-on-rails ×2

libv8 ×1

ruby ×1