From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Martin Goodson <kaemaril(at)googlemail(dot)com>, pgsql-general(at)postgresql(dot)org |
Cc: | Devrim Gündüz <devrim(at)gunduz(dot)org> |
Subject: | Re: EnterpriseDB installed PostgreSQL 9.6 vs. REPMGR. Round 4 - compilation issues on RHEL 7.2 |
Date: | 2017-05-17 16:19:58 |
Message-ID: | 2786e90f-27ef-84ad-0c05-fa8eab0c71a4@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 05/17/2017 07:26 AM, Martin Goodson wrote:
> On 16/05/2017 18:46, Adrian Klaver wrote:
>> Per Tom's suggestion try
>>
>> ldd /db_demo/app/postgres/9.6.2-3/lib/libldap_r-2.4.so.2
>
> Hello. Apologies for the delay in replying - medical appointment this
> morning :) Anyway, executed that command as suggested and this is the
> output I got.
>
> (I noticed there was a second file in there with roughly the same name
> ... ish. Just in case it might be relevent, I did that one too :) )
Spun up a RH 7.3 instance and tried the compile and got the same error.
It then rang a bell and I went back to this:
http://raghavt.blogspot.com/2015/01/configuring-automatic-failover-using.html
"/lib64/libldap_r-2.4.so.2: undefined reference to `ber_sockbuf_io_udp'
collect2: ld returned 1 exit status
make: *** [repmgrd] Error 1
To fix, find the checking library in /lib64/libldap_r-2.4.so.2.
[root(at)localhost repmgr-2.0]# cd /lib64/
[root(at)localhost lib64]# ls -l libldap*
lrwxrwxrwx. 1 root root 20 Dec 8 09:23 libldap-2.4.so.2 ->
libldap-2.4.so.2.5.6
-rwxr-xr-x. 1 root root 317200 Apr 29 2013 libldap-2.4.so.2.5.6
lrwxrwxrwx. 1 root root 22 Dec 8 09:23 libldap_r-2.4.so.2 ->
libldap_r-2.4.so.2.5.6
-rwxr-xr-x. 1 root root 335264 Apr 29 2013 libldap_r-2.4.so.2.5.6
Ok, there are two copies, retain one and unlink other.
[root(at)localhost lib64]# unlink libldap_r-2.4.so.2
"
I did the above and success:
PATH=/opt/PostgreSQL/9.6/bin:$PATH make USE_PGXS=1 clean all
...
/usr/bin/ld: warning: libssl.so.1.0.0, needed by
/opt/PostgreSQL/9.6/lib/libpq.so, may conflict with libssl.so.10
make -C sql
make[1]: Entering directory `/home/ec2-user/repmgr-3.3.1/sql'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ec2-user/repmgr-3.3.1/sql'
I am going to agree with John's comment upstream that unlinking a file
seems to be dubious. You might want to try linking the file back up
again after you have installed repmgr and see if it causes any issues.
>
> Hope that info's helpful!
>
> Regards,
>
> Martin.
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2017-05-17 16:21:52 | Re: PSQL command line print speed |
Previous Message | Pavel Stehule | 2017-05-17 16:09:35 | Re: PSQL command line print speed |