error while loading shared libraries: libnetxms.so.1
-
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 directoryIt 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.1Any ideas?
I have tried both stable and unstable
1.0.13
1.1.7This is on ubuntu 10.04 x64
--Forced
-
Hi!
Try to add /usr/local/lib to /etc/ld.so.conf, run ldconfig, and then try make install again.
Best regards,
Victor -
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 1Any ideas?
--Forced
-
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.sqland now I have other error :
NetXMS Database Manager Version 1.0.13Initializing database...
ERROR: Cannot load SQL command file /usr/local/share/netxms/sql/dbiit_mysql.sql
Database initialization failedAny idea? please heeeeelp
Thank you! -
I just solve the problem, thanks anyway

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

-
@mariposa said in error while loading shared libraries: libnetxms.so.1:
I just solve the problem, thanks anyway

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

Thanks, this fixed me up right away

-
@anrkey said in error while loading shared libraries: libnetxms.so.1:
@mariposa said in error while loading shared libraries: libnetxms.so.1:
I just solve the problem, thanks anyway

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

Thanks, this fixed me up right away

Thanks! Helped for me also!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login