-
Notifications
You must be signed in to change notification settings - Fork 237
FAQ
Follow the instructions at Symlink GCC to symlink /usr/bin/gcc
to ~/.linuxbrew/bin/gcc-4.x
or ~/.linuxbrew/bin/gcc-5
.
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
.
- http://docs.brew.sh/Installation.html#alternative-installs
- http://docs.brew.sh/FAQ.html#why-do-you-compile-everything
- http://docs.brew.sh/Bottles.html#cellar-cellar
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 using openssl
. A reinstall of openssl
should fix the problem. To temporarily make use of an insecure connection for both curl
and git
to download any necessary files, run:
echo insecure >> ~/.curlrc
git config --global http.sslVerify false
Then, install or reinstall openssl
and curl
:
HOMEBREW_CURLRC=1 brew reinstall openssl curl
Finally, undo the security changes to make curl
and git
use secure connections again:
sed -i '/^insecure$/d' ~/.curlrc
git config --global http.sslVerify true