Last active
September 1, 2023 08:57
-
-
Save lewis6991/69cfb995ca85e36abca5864b4859e822 to your computer and use it in GitHub Desktop.
Setup linuxbrew on Redhat 7
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
# This script assumes you have modern versions of gcc, git and curl on your path. | |
HOMEBREW_PREFIX="$1" | |
# From https://github.com/Homebrew/discussions/discussions/254 | |
export HOMEBREW_DEVELOPER=1 | |
export HOMEBREW_CURL_PATH="$(which curl)" | |
export HOMEBREW_GIT_PATH="$(which git)" | |
# From https://docs.brew.sh/Homebrew-on-Linux#alternative-installation | |
git clone https://github.com/Homebrew/brew $HOMEBREW_PREFIX | |
# From https://github.com/Linuxbrew/brew/wiki/Symlink-GCC | |
ln -s $(which gcc) "$HOMEBREW_PREFIX"/bin/gcc | |
ln -s $(which g++) "$HOMEBREW_PREFIX"/bin/g++ | |
ln -s $(which gfortran) "$HOMEBREW_PREFIX"/bin/gfortran | |
"$HOMEBREW_PREFIX"/bin/brew install git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May also need:
https://github.com/Homebrew/linuxbrew-core/issues/22511