Created
December 21, 2021 18:23
-
-
Save juelvaldivia/ef8de3e89c48d455ea7e8f68fe38c725 to your computer and use it in GitHub Desktop.
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
# How to Install homebrew on Manjaro | |
> Steps required to install homebrew on Manjaro Linux | |
## Steps | |
1. Install base-devel | |
pacman -Syu # CAUTION: this updates the whole system | |
pacman -S base-devel | |
2. Run the installer script | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
3. Set brew environment variables | |
[ -d /home/linuxbrew/.linuxbrew ] && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
# You most likely want to add the above line to your shell startup file as well. | |
4. Make `brew doctor` happy | |
brew doctor | |
# In case it complains about the linked directory | |
mkdir -p /home/linuxbrew/.linuxbrew/var/homebrew/linked | |
chown -R $(whoami) /home/linuxbrew/.linuxbrew/var/homebrew/linked | |
# Ignore the warning about python being symlinked to python3. This is the default behavior in ArchLinux/Manjaro and chaning the symlink is dangerous. | |
5. Vendor-install ruby | |
brew vendor-install ruby | |
6. Install gcc (as recommended by the installer script) | |
brew install gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment