Also das ist, wie ich versuche, auf meinem Windows zu installieren libv8:libv8 erforderlich Python 2 werden installiert, um zu bauen - 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>'
Ich installierte Python 2.7 und fügte hinzu, es auf den Weg:
D:\projects\perfstats>python -V
Python 2.7.3
Irgendwelche Ideen, was könnte die Lösung in diesem Fall sein?
Haben Sie die Instanz neu starten von 'cmd.exe' verwendet im oberen Beispiel * nachdem * PATH' modifiziert wurde? – Aya
Ja, ich erinnerte mich daran. – user2192677
Ich weiß nichts über Ruby, aber ich sehe [eine ähnliche Frage] (http://stackoverflow.com/questions/16514758/gem-install-libv8-version-3-11-8-17-on-ruby-windows) scheint es nicht für Windows zu funktionieren. Das 'which python2 2> & 1>/dev/null' ist sehr Unix-spezifisch. – Aya