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

Build failure #39

Open
ranjanan opened this issue Jul 25, 2016 · 3 comments
Open

Build failure #39

ranjanan opened this issue Jul 25, 2016 · 3 comments

Comments

@ranjanan
Copy link

I got a build failure on both Mac:

INFO: Building Crypto
gcc -Wno-deprecated-declarations -std=c99 -shared -fPIC digest.c ecdsa.c -o libcryptojl.dylib -lcrypto
ecdsa.c:4:10: fatal error: 'openssl/ec.h' file not found
#include <openssl/ec.h>
         ^
1 error generated.
make: *** [shared] Error 1

and Linux:

INFO: Building Crypto
gcc -Wno-deprecated-declarations -std=c99 -shared -fPIC digest.c ecdsa.c -o libcryptojl.so -lcrypto                                                                 
ecdsa.c:4:24: fatal error: openssl/ec.h: No such file or directory                                                                                                  
 #include <openssl/ec.h>                                                                                                                                            
                        ^                                                                                                                                           
compilation terminated.                                                                                                                                             
make: *** [shared] Error 1                                          
@tanmaykm
Copy link
Collaborator

@ranjanan looks like you need openssl-dev (or equivalent) installed

@ranjanan
Copy link
Author

Oh, I see. According to this, on Mac OSX versions El Capitan and above, openssl-dev is not provided in Homebrew because of security issues. I guess it's possible in Linux to download the development headers you have root access.

@iramiller
Copy link

iramiller commented Oct 4, 2016

You can fix this on macOS (tested on 10.12) by installing openssl with brew then symlinking the header files over into usr local include.

brew install openssl
cd /usr/local/include/
ln -s ../opt/openssl/include/openssl/ .

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

3 participants