I made a rails project with,
rails new test_bootstrap.
succeeded.
moved to the project dir and added the gems
gem \
My issue wasn't related with therubyracer at all just libv8 gem and as @rishav-bhardwaj pointed --with-system-v8 didn't do the trick, instead i had to exec
bundle update
then
bundle install
and finally
Bundle complete!
The error is gone!
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.