NetXMS Support Forum

English Support => General Support => Topic started by: lindeamon on June 28, 2015, 06:05:32 PM

Title: v2.0-M5 & PostgreSQL
Post by: lindeamon on June 28, 2015, 06:05:32 PM
hi,

i am installing v2.0-m5 on centos with pgsql v9.1 and when trying to do nxdbmgr upgrade i get an error "error while loading shared libraries: libnxexpat.so.1: cannot open shared object file: no such file or directory"

older versions works fine.

10x,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on June 28, 2015, 06:35:33 PM
i have tried reinstalling and this time i have enabled logging and this file can not be found even in the make install phase.
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on June 29, 2015, 03:12:41 PM
Hi,

try to add configuration option --with-internal-libexpat when you run configure.

Best regards,
Victor
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 05, 2015, 05:33:23 PM
hi victor,

did not help, getting the same error

Best Regards,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on July 08, 2015, 03:01:09 PM
Can you please send me config.log and output of command

ldd /path/to/nxdbmgr

Best regards,
Victor
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 09, 2015, 03:10:14 PM
hi victor,

can you tell me where do i find this config.log ?
do you want the config.log of the m5 ?
i have downgraded to m1 so i will need to upgrade again.

Best Regards,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on July 09, 2015, 06:46:21 PM
When you run configure it will create config.log in same directory. Yes, I need it from M5.

Best regards,
Victor
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 12, 2015, 01:35:59 PM
Hi Victor,

attached the files that you wanted.

Best Regards,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on July 12, 2015, 10:37:32 PM
Hi,

it seems to be some strange mix of different library versions (*.so.1 and *.so.2). Try to delete all libraries from /opt/netxms/lib, run make clean and then make and make install again.

Best regards,
Victor
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 13, 2015, 04:38:53 PM
hi victor,

before i do an upgrade, i delete the /opt/netxms folder completely and i "tar -zxf..." from scratch, do i still have to perform the "make clean" ?
i have been doing this process for the past 10 versions and never had problems like this.

Best Regards,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on July 14, 2015, 09:10:01 PM
Hi,

if you delete /opt/netxms completely then it should not be an issue. Still it looks like older library somewhere. Can you please check if there are libnetxms.so.1 left somewhere?

Best regards,
Victor

Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 19, 2015, 06:52:10 PM
hi victor,

i have reinstalled M5 and searched for the "libnxexpat.so.1" and found it under /usr/local/lib.
i have tried loooking for this file in the /opt/netxms dir and could not find it.
maybe soft links weren't created ?
when i finish the "make" it says that i have 1 error with "recursive", maybe that will give you a clue.

Best Regards,
Lindeamon
Title: Re: v2.0-M5 & PostgreSQL
Post by: Victor Kirhenshtein on July 21, 2015, 04:23:28 PM
Hi,

it seems that at some point you forgot to specify prefix to configure and it installs binaries and libraries into default location (/usr/local). You can safely delete all netxms libraries from /usr/local/lib - then 2.0-M5 should work without problems.

Best regards,
Victor
Title: Re: v2.0-M5 & PostgreSQL
Post by: lindeamon on July 26, 2015, 03:42:33 PM
Hi Victor,

worked like a charm

Best Regards,
Lindeamon