簡體   English   中英

安裝libv8時出錯

[英]Error installing libv8

我嘗試使用以下命令安裝libv8 v3.16.14.3

gem install libv8 -v '3.16.14.3'

我得到以下輸出。

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing libv8:
    ERROR: Failed to build gem native extension.

    C:/software/ruby-1.9.3/bin/ruby.exe 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:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:58:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:42:in `block in build_libv8!'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `chdir'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `build_libv8!'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:24:in `install!'
    from extconf.rb:7:in `<main>'


Gem files will remain installed in C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3 for inspection.
Results logged to C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/gem_make.out

我很困惑如何解決此問題。

有人可以在這里幫我嗎。

libv8需要安裝python 2才能進行構建,但當前不可用(RuntimeError)

在您的系統中安裝了Python?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM