From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Jerry LeVan <jerry(dot)levan(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: configure can't find libcrypto on MacOS Sierra for pg 9.6.2 |
Date: | 2017-02-12 16:41:14 |
Message-ID: | 737cef3b-210f-c824-969b-4765f02312b8@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 02/12/2017 06:56 AM, Jerry LeVan wrote:
> 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?
Not a suggestion, but a question:
What are the full command line invocations to configure for 9.3 and 9.6?
Now a suggestion, do you have the openssl devel package installed?
>
> Thanks
>
> Jerry
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-02-12 16:53:27 | Re: configure can't find libcrypto on MacOS Sierra for pg 9.6.2 |
Previous Message | Jerry LeVan | 2017-02-12 14:56:13 | configure can't find libcrypto on MacOS Sierra for pg 9.6.2 |