Skip to content

Instantly share code, notes, and snippets.

@khun84
Created April 22, 2022 03:06
Show Gist options
  • Save khun84/e06a5dd6fa097b99bf358c80ec17828e to your computer and use it in GitHub Desktop.
Save khun84/e06a5dd6fa097b99bf358c80ec17828e to your computer and use it in GitHub Desktop.
Fixing libv8 installation

Basically we just need to do the following

# 1. Install v8 ourselves
$ brew install v8-315
# 2. Install libv8 using the v8 binary we just installed
$ gem install libv8 -v '3.16.14.19' -- --with-system-v8
# 3. Install therubyracer using the v8 binary we just installed
$ gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8@315 # your path could be different, e.g. /usr/local/opt/[email protected]
# 4. Install the remaining dependencies
$ bundle install

For detail explanation, refer here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment