Tak to jest jak próbuję zainstalować libv8 na moim Windows:libv8 wymagane python 2 do zainstalowania w celu zbudowania - Windows
D:\projects\perfstats>gem install libv8
Fetching: libv8-3.16.14.1.gem (100%)
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.
D:/Ruby193/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.
D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/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.16.14.1/ext/libv8/builder.rb:35:in `block in build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:34:in `chdir'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:34:in `build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
zainstalowaniu Pythona 2.7 i dodać go do ścieżki:
D:\projects\perfstats>python -V
Python 2.7.3
Jakieś pomysły, co może być rozwiązaniem w tym przypadku?
Czy ponownie uruchomić instancję 'cmd.exe' użyte w górnym przykładzie * po * modyfikowaniu' PATH'? – Aya
Tak, przypomniałem sobie o tym. – user2192677
Nic nie wiem o Ruby, ale patrząc na [podobne pytanie] (http://stackoverflow.com/questions/16514758/gem-install-libv8-version-3-11-8-17-on-ruby-windows) wygląda na to, że nie jest przeznaczony do pracy w systemie Windows. '' Który python2 2> & 1>/dev/null' jest bardzo specyficzny dla Uniksa. – Aya