Created
November 9, 2023 16:25
-
-
Save dnedrow/8be9cee98e786608a9628e0e0e7c3c34 to your computer and use it in GitHub Desktop.
Solving rvm ruby build `Error running '__rvm_make -j8'` on macOS
This file contains hidden or 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
| /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