
So how is the file system set up? If you cd ~ and pwd, you’ll get /home//… but that can’t really be the path from /! The root directory for your Linux filesystem should look something like the following.
Brew install lastpass install#
sudo apt-get update sudo apt-get install build-essential Usage Notes A fix is to run the following commands to get brew working properly. The recommended solution of brew install gcc may result in the same error. Error: The following formula patchelf cannot be installed as binary package and must be built from source. If you have the following error: Error: patchelf must be installed: brew install patchelf Warning: Bottle installation failed: building from source. Otherwise, you can skip ahead to “Usage Notes”.


If you get an error concerning patchelf, see below for a fix. You should get the below output if everything is working as expected. Run these commands: test -d ~/.linuxbrew & eval $(~/.linuxbrew/bin/brew shellenv ) test -d /home/linuxbrew/.linuxbrew & eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv ) test -r ~/.bash_profile & echo "eval \$( $(brew -prefix )/bin/brew shellenv)" >~/.bash_profile echo "eval \$( $(brew -prefix )/bin/brew shellenv)" >~/.profileĪnd that’s it! Now you can use brew! Try installing a simple package to test: brew install hello Additionally, this means that you won’t need to use sudo to use brew.

Therefore, you will need to manually add that directory to your PATH. Linuxbrew, on the other hand, will install packages to /home/linuxbrew/.linuxbrew/bin. Normally, Homebrew on MacOS will install packages to /usr/local/bin or /usr/local/Cellar. Pay close attention to the output you’ll be instructed to Configure Linuxbrew in your ~.profile and Add Linuxbrew to your PATH.
