Error installing therubyracer and libv8

Wajeeh Ahsan
Nov 25, 2021

--

To run a Rails project, had issues installing therubyracer and libv8
And came out to solve them with following commands

gem install therubyracer -v '0.12.3' -- --with-system-v8

And

gem install libv8 -v '3.16.14.19' -- --with-system-v8

So — — with-system-v8 was the key.

And if you’re using Mac OS and face issue with v8 directory, follow these

brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
bundle install

--

--

Wajeeh Ahsan
Wajeeh Ahsan

No responses yet