error while loading shared libraries: libnetxms.so.1

Started by forced-inductn, December 20, 2011, 01:01:04 AM

Previous topic - Next topic

forced-inductn

I am compiling from source, and when I run make install I get:

root@kr3at0r:~# /usr/local/bin/nxmibc -d /usr/local/share/netxms/mibs/ -o /usr/local/share/netxms/mibs/netxms.mib
/usr/local/bin/nxmibc: error while loading shared libraries: libnetxms.so.1: cannot open shared object file: No such file or directory

It does exist on disk:
root@kr3at0r:~# find / -name libnetxms.so.1                                     
/usr/local/lib/libnetxms.so.1
/root/netxms-1.1.7/src/libnetxms/.libs/libnetxms.so.1

Any ideas?

I have tried both stable and unstable
1.0.13
1.1.7

This is on ubuntu 10.04 x64

--Forced

Victor Kirhenshtein

Hi!

Try to add /usr/local/lib to /etc/ld.so.conf, run ldconfig, and then try make install again.

Best regards,
Victor

forced-inductn

Thanks! that worked :) but now I am getting this error:

RAPID-CITY-BAY-STACK: ERROR 001: Import symbol "rcBayStack" unresolved
make[3]: *** [install-exec-hook] Error 1
make[3]: Leaving directory `/tmp/netxms-1.0.13'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory `/tmp/netxms-1.0.13'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/tmp/netxms-1.0.13'
make: *** [install-recursive] Error 1

Any ideas?

--Forced

Mariposa

Hi  :)
I have the same problem as you, and I've done what Victor said.
Had the same error as you, but I ignored it and repeated command
/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbiit_mysql.sql

and now I have other error :
NetXMS Database Manager Version 1.0.13

Initializing database...
ERROR: Cannot load SQL command file /usr/local/share/netxms/sql/dbiit_mysql.sql
Database initialization failed

Any idea? please heeeeelp  :) Thank you!

Mariposa

I just solve the problem, thanks anyway ;)

Forced this is what I have done :
1. go to /etc/ld.so.conf.d/libc.conf and check if it contains line "/usr/local/lib", if not, add it
2. run "ldconfig" as root (it will produce no output)
3. After that run "ldconfig -p|grep libnetxms" to verify (it will have output)
4. run /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
5. it will work and now you can run agent and server :)

AnRkey

Quote from: Mariposa on December 27, 2011, 12:45:18 PM
I just solve the problem, thanks anyway ;)

Forced this is what I have done :
1. go to /etc/ld.so.conf.d/libc.conf and check if it contains line "/usr/local/lib", if not, add it
2. run "ldconfig" as root (it will produce no output)
3. After that run "ldconfig -p|grep libnetxms" to verify (it will have output)
4. run /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
5. it will work and now you can run agent and server :)

Thanks, this fixed me up right away :D

arnisraido

Quote from: AnRkey on April 22, 2013, 06:38:39 PM
Quote from: Mariposa on December 27, 2011, 12:45:18 PM
I just solve the problem, thanks anyway ;)

Forced this is what I have done :
1. go to /etc/ld.so.conf.d/libc.conf and check if it contains line "/usr/local/lib", if not, add it
2. run "ldconfig" as root (it will produce no output)
3. After that run "ldconfig -p|grep libnetxms" to verify (it will have output)
4. run /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
5. it will work and now you can run agent and server :)

Thanks, this fixed me up right away :D

Thanks! Helped for me also!