I installed libv8 gem on windows using this command:
gem install libv8
Then, when I try to install therubyracer , it gives me a long error message:
Installing therubyracer 0.12.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: D:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/therubyracer- 0.12.2/ext/v8 D:/Ruby21-x64/bin/ruby.exe -r ./siteconf20160105-4924-101vdyd.rb extconf.rb checking for main() in -lpthread... yes checking for v8.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options:
I realized that therubyracer wants to find v8 . I installed Node.js, which already has it. Is it even possible to use it? Or are there other corn solutions?
source share