Mini_racer causing rebuild fail

Same issue for me, fails here. mini_racer_extension.cc:4:24: fatal error: include/v8.h: No such file or directory.

Did what is says here bundle install error (fatal error: include/v8.h: No such file or directory) · Issue #37 · rubyjs/mini_racer · GitHub. Never worked, the error recommended installing 0.1.3 and I just did latest instead and it worked (after uninstalling libv8 from that issue so not sure if related).

And doesn’t work with a rebuild after because it wants to do 0.1.3 and fails.

EDIT: running with the 1.3.6 image… done and working, now to do this with 3 more servers JUST to update mail settings sigh


Full log from running it within the docker container:

root@web01-prd-us-east1-c-[deleted]-app:/var/www/discourse# gem install mini_racer -v ‘0.1.3’
Fetching: libv8-5.3.332.38.1-x86_64-linux.gem (100%)
Successfully installed libv8-5.3.332.38.1-x86_64-linux
Fetching: mini_racer-0.1.3.gem (100%)
Building native extensions. This could take a while…
ERROR: Error installing mini_racer:
ERROR: Failed to build gem native extension.

current directory: /usr/local/lib/ruby/gems/2.3.0/gems/mini_racer-0.1.3/ext/mini_racer_extension

/usr/local/bin/ruby -r ./siteconf20161103-425-359b4x.rb extconf.rb
checking for main() in -lpthread… yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/mini_racer-0.1.3/mkmf.log

current directory: /usr/local/lib/ruby/gems/2.3.0/gems/mini_racer-0.1.3/ext/mini_racer_extension
make “DESTDIR=” clean

current directory: /usr/local/lib/ruby/gems/2.3.0/gems/mini_racer-0.1.3/ext/mini_racer_extension
make “DESTDIR=”
compiling mini_racer_extension.cc
mini_racer_extension.cc:4:24: fatal error: include/v8.h: No such file or directory
compilation terminated.
Makefile:206: recipe for target ‘mini_racer_extension.o’ failed
make: *** [mini_racer_extension.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/lib/ruby/gems/2.3.0/gems/mini_racer-0.1.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/mini_racer-0.1.3/gem_make.out