Bug #10
Document / auto-configure the CRYPTOROOT option.
Start date:
07/08/2016
Due date:
% Done:
0%
Description
Naively installing on Mac OS X using brew, I got errors that openssl couldn't be found:
dhcp-45-14:gdp mellis$ make #(cd doc; make all) # needs pandoc (cd ep; make all) cc -Wall -g -O -I/opt/local/include -I. -I.. -fPIC -c -o ep_adm.o ep_adm.c cc -Wall -g -O -I/opt/local/include -I. -I.. -fPIC -c -o ep_app.o ep_app.c cc -Wall -g -O -I/opt/local/include -I. -I.. -fPIC -c -o ep_assert.o ep_assert.c cc -Wall -g -O -I/opt/local/include -I. -I.. -fPIC -c -o ep_b64.o ep_b64.c cc -Wall -g -O -I/opt/local/include -I. -I.. -fPIC -c -o ep_crypto.o ep_crypto.c In file included from ep_crypto.c:32: ./ep_crypto.h:43:11: fatal error: 'openssl/evp.h' file not found # include <openssl/evp.h> ^ 1 error generated. make[1]: *** [ep_crypto.o] Error 1 make: *** [all] Error 2
I'm assuming this is because brew installs openssl to /usr/local but the Makefiles assume it's in /opt/local. It might be good to document the CRYPTOROOT in README-compiling.md, since this seems likely to affect many OS X brew users. Alternatively, maybe CRYPTOROOT (and LOCALROOT) can be set from the brew configuration?
History
#1 Updated by Nitesh Mor almost 7 years ago
- Assignee set to Eric Allman
#2 Updated by Eric Allman almost 7 years ago
- Status changed from New to Feedback
Changed Makefiles to always search /usr/local and /opt/local, completely eliminating CRYPTOROOT. Fixed in commit:475517e. David, please confirm that this works for you.
#3 Updated by Eric Allman almost 7 years ago
- Status changed from Feedback to Closed
No feedback for two weeks, so I'm assuming this has been adequately addressed. Marking as closed.