gem install libv8 --version '3.11.8.17' on ruby (windows) -
the problem following.
error installing libv8: error: failed build gem native extension. d:/ruby193/bin/ruby.exe extconf.rb creating makefile system can not find 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 installed in order build,but not available (runtimeerror) d:ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:35:in 'block in build_libv8!' d:ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'chdir' d:ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'build_libv8!' d:ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:34:in 'install!' extconf.rb:7: in '<main>' have installed python27 , add path. python --version python 2.7.4
then check code following.
def setup_python! # if python v2 cannot found in path, # create symbolic link python2 current directory , put # @ head of path. way commands inherit environment # use ./python -> python2 if python_version !~ /^2/ unless system 'which python2 2>&1 > /dev/null' fail "libv8 requires python 2 installed in order build, #{python_version}" end `ln -fs #{`which python2`.chomp} python` env['path'] = "#{file.expand_path '.'}:#{env['path']}" end end
i tried install linux command line windows 'ln -fs' should working.but problem still can not solved.
try this:
gem install libv8 -v '3.11.8.17' -- --with-system-v8
this error pain untill run above command :)
Comments
Post a Comment