Steps required to install homebrew on Manjaro Linux
-
Install base-devel
pacman -S base-devel
-
Run the installer script
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
-
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
-
Make
brew doctor
happybrew 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.
-
Vendor-install ruby
brew vendor-install ruby
-
Install gcc
brew install gcc
thax man i really appreciate sharing this on git-hub you saved me lots of time, wish you the best.