Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation on newer OSX #19

Open
csb19815 opened this issue Jul 17, 2018 · 3 comments
Open

Compilation on newer OSX #19

csb19815 opened this issue Jul 17, 2018 · 3 comments

Comments

@csb19815
Copy link

It seems like you need to set an additional environment variable when installing on OSX:

Instead of:

OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo build --release

I had to use:

DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo build --release

See this issue: sfackler/rust-openssl#255 (comment)

@PoNienC
Copy link

PoNienC commented Jan 17, 2019

I am an OSX user as well. I had so much trouble to link openssl when I compile the files.
Besides the above environment variables. Here is what I use for a successful compile.

export DEP_OPENSSL=/usr/local/opt/openssl
export OPENSSL_DIR=/usr/local/opt/openssl
export DEP_OPENSSL_LIB=/usr/local/opt/openssl/lib
export OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib
export DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include
export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include

Remember to do cargo clean before cargo build —-release

@teburd
Copy link
Contributor

teburd commented Feb 18, 2019

Can you create a pull request with changes to the README to fix this? That would be helpful for others

@henryjameslau
Copy link

Thanks @csb19815! Your command worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants