Created
May 5, 2016 15:14
-
-
Save fernandoaleman/868b64cd60ab2d51ab24e7bf384da1ca to your computer and use it in GitHub Desktop.
Fixing libv8 and therubyracer on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still not working on Ruby@3.1 the only way out is reverting to ruby 3.0.4