Skip to content

Instantly share code, notes, and snippets.

@dnedrow
Created November 9, 2023 16:25
Show Gist options
  • Select an option

  • Save dnedrow/8be9cee98e786608a9628e0e0e7c3c34 to your computer and use it in GitHub Desktop.

Select an option

Save dnedrow/8be9cee98e786608a9628e0e0e7c3c34 to your computer and use it in GitHub Desktop.
Solving rvm ruby build `Error running '__rvm_make -j8'` on macOS
/usr/bin/env bash
# When installing Ruby with [RVM](https://rvm.io), you may run into the
# following error:
# `Error running '__rvm_make -j8'`
# This is caused by the inability of the build to find particular libraries
# installed via [Homebrew](https://brew.sh).
#
# Just run this script before calling `rvm install`
# This solution found on [StackOverflow](https://stackoverflow.com/a/76922741/1227012)
export CONFIGURE_ARGS=""
for ext in openssl readline libyaml zlib; do
CONFIGURE_ARGS="${CONFIGURE_ARGS} --with-$ext-dir=$(brew --prefix $ext)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment