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@localhost repmgr-2.0]# cd /lib64/
[root@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@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.klaver@xxxxxxxxxxx
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general