Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.
Maxim Belkin edited this page Mar 29, 2017 · 17 revisions

Why install in /home/linuxbrew/.linuxbrew?

Problem: Formulae are built from source even though bottles are available

Explanation: Some software does not like to be moved to a different directory after it has been built from source. Frequently, this is caused by hard-coded links to other libraries and/or components of the same software suite. The binary bottles that Linuxbrew provides are built in the environment where Linuxbrew is installed in /home/linuxbrew/.linuxbrew. Therefore, if any component of the software (executable, text file, libraries) hard-codes this address into itself, Linuxbrew marks this bottle as non-relocatable. As the name suggests, such a bottle can not be poured (that is, installed) into anything else but /home/linuxbrew/.linuxbrew. Hence, if your Linuxbrew is installed in a different location, it will not use non-relocatable bottles and will build software from source. Note, that your Linuxbrew will still be able to use relocatable bottles.

Please refer to the following pages on Homebrew documentation. Replace the default Homebrew macOS directory of /usr/local with the Linuxbrew default directory of /home/linuxbrew/.linuxbrew.


Why does curl fail?

Problem: curl: (60) SSL certificate problem: unable to get local issuer certificate or curl: (77) error setting certificate verify locations

Solution: This error message indicates that curl is not able to establish a secure connection. To use an insecure connection for both curl and git, run:

echo insecure >> ~/.curlrc
git config --global http.sslVerify false

To undo these changes and use a secure connection again, run:

sed -i '/^insecure$/d' ~/.curlrc
git config --global http.sslVerify true
Clone this wiki locally