Further improve OSX openssl docs

force linking doesn't work anymore and setting the environment variables is the recommended way of linking to non system openssl.
This commit is contained in:
Leonardo Santagada 2016-09-15 00:35:00 +02:00 committed by GitHub
parent 1f1e92aca3
commit 37f1d50f51

View file

@ -35,26 +35,18 @@ pip install virtualenv
``` sh ``` sh
sudo port install python27 py27-virtualenv cmake sudo port install python27 py27-virtualenv cmake
``` ```
#### On OS X 10.11 (El Capitan), you also have to install openssl #### On OS X <= 10.11 (El Capitan), you also have to install openssl
``` sh ``` sh
brew install openssl brew install openssl
brew link --force openssl
```
If you get this error during the brew link step:
```sh
Warning: Refusing to link: openssl
```
followed by a compile error not being able to find one or more
openssl/ include files, you may want to try:
```sh
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include" export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib" export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
./mach build ... ./mach build ...
``` ```
If you've already partially compiled servo but forgot to do this step, run ./mach clean, link openssl, and recompile. If you've already partially compiled servo but forgot to do this step, run ./mach clean, set the shell variables, and recompile.
#### On Debian-based Linuxes #### On Debian-based Linuxes