-
-
Save fernandoaleman/868b64cd60ab2d51ab24e7bf384da1ca to your computer and use it in GitHub Desktop.
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
if someone is using mini_racer 0.3.0
or below, please upgrade to gem 'mini_racer', '0.6.2'
and comment out libv8
trust me, it will save you hours of dev config time
Much thanks @gamesover This was the perfect fix for Monterey 12.4 on a M1.
if someone is using
mini_racer 0.3.0
or below, please upgrade togem 'mini_racer', '0.6.2'
and comment outlibv8
trust me, it will save you hours of dev config time
Still not working on Ruby@3.1 the only way out is reverting to ruby 3.0.4
Comment out Following 2 Gems from Gemfile
1: g em 'libv8'
2: gem 'therubyracer'
Add following Gem
gem 'mini_racer'
bundle install
Should work as suggested by @srfinkel
Still not working on Ruby@3.1, any solutions??
Not working on ruby@3.1 yet
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
Thanks. Worked for me too!
For those who any of the above fixes didn't work I installed Python 3.9.1 set it to the global python version (setting it to local version didn't work), and ran bundle again and it installed mini_racer correctly.
What tipped me off was the following message in the console output after it failed:
Here are the commands I ran: