From 1b580e2e8d593be79aa4142b902cdb46afa044ef Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 11 Oct 2015 08:20:53 -0700 Subject: [PATCH 1/3] Update README with OSX 10.11 instructions These instructions are from one of the open issues on the project. They are working for me, I am not sure if there are some possible side effects from the brew link --force. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index b1f50235..4b513917 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ rust-openssl to a separate installation. OSX releases starting at 10.11, "El Capitan", no longer include OpenSSL headers which will prevent the `openssl` crate from compiling. +For OSX 10.11 you can use brew to install OpenSSL. +```bash +brew install openssl +brew link openssl --force +``` + ### Windows On Windows, consider building with [mingw-w64](http://mingw-w64.org/). From bd738fa5d806012252452579432ee3c98c45f95b Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 11 Oct 2015 16:31:09 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b513917..87ca998b 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,12 @@ rust-openssl to a separate installation. OSX releases starting at 10.11, "El Capitan", no longer include OpenSSL headers which will prevent the `openssl` crate from compiling. -For OSX 10.11 you can use brew to install OpenSSL. +For OSX 10.11 you can use brew to install OpenSSL and then set the environment variables +as described below. ```bash brew install openssl -brew link openssl --force +export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include +export OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib ``` ### Windows From a7f60f46833ffcdd17e4bb9e16fe0297cf8079e5 Mon Sep 17 00:00:00 2001 From: Marius Seritan Date: Sun, 11 Oct 2015 16:46:26 -0700 Subject: [PATCH 3/3] Update README.md. Use the brew --prefix command instead of hardcoding paths. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87ca998b..fe07ddbe 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ For OSX 10.11 you can use brew to install OpenSSL and then set the environment v as described below. ```bash brew install openssl -export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include -export OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib +export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include +export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib ``` ### Windows