Hello, I am trying to build pg 9.6.2 on my MacOS Sierra but
configure is being balky
configure:9494: checking for CRYPTO_new_ex_data in -lcrypto
configure:9519: gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-for
mat-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 conftest.c
-lcrypto -lz -ledi
t -lm >&5
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:9519: $? = 1
but libcrypto is present:
eagle:Desktop postgres$ ls -al /usr/lib/libcrypto*
-rwxr-xr-x 1 root wheel 2043536 Dec 10 04:53 /usr/lib/libcrypto.0.9.7.dylib
-rwxr-xr-x 1 root wheel 2681408 Dec 10 04:53 /usr/lib/libcrypto.0.9.8.dylib
-rw-r--r-- 1 root wheel 4209728 Dec 10 04:53 /usr/lib/libcrypto.35.dylib
lrwxr-xr-x 1 root wheel 21 Sep 24 13:20 /usr/lib/libcrypto.dylib -> libcrypto.0.9.8.dylib
The config.log file for 9.3.2 passes the test.
And for the 9.3.2 image:
eagle:Desktop postgres$ otool -L /usr/local/bin/postgres
/usr/local/bin/postgres:
/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
eagle:Desktop postgres$
Any suggestions?
Thanks
Jerry