News:

We really need your input in this questionnaire

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - lweidig

#166
General Support / Ubuntu compile from source 1.2.1
June 28, 2012, 11:29:25 PM
Not having luck I with the .deb files I grabbed the source

sh ./configure --with-server --with-mysql --with-agent  --prefix=/usr
make
... Lots of make omitted
Making all in core
make[4]: Entering directory `/usr/src/netxms-1.2.1/src/server/core'
  CXX    session.lo
session.cpp: In member function 'void ClientSession::setupEncryption(CSCPMessage*)':
session.cpp:6466:14: error: 'dwRqId' was not declared in this scope
session.cpp: In function 'void* RunCommand(void*)':
session.cpp:11213:24: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
make[4]: *** [session.lo] Error 1
make[4]: Leaving directory `/usr/src/netxms-1.2.1/src/server/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/netxms-1.2.1/src/server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/netxms-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/netxms-1.2.1'
make: *** [all] Error 2
#167
General Support / Ubuntu 12.04 with .deb packages
June 28, 2012, 10:52:02 PM
No matter how I change the netxmsd.conf file I get some variation of:

# /usr/bin/nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql
NetXMS Database Manager Version 1.2.1

Unable to load and initialize database driver "/usr/lib/libnxddr_mysql.so"

I have tried the following for the driver line:

DBDriver = /usr/lib/libnxddr_mysql.so
DBDriver = mysql.ddr
DBDriver = /usr/lib/netxms/dbdrv/mysql.ddr

All of them produce a varion of the unable to load message based on the driver name.

I can login to MySQL server using:
# mysql -h localhost -u netxms -p netxms

This is basically a fresh / patched installation of 64 bit Ubuntu 12.04 and then added the following packages:

apt-get install libssl0.9.8 libtre5 libreadline5 mysql-server mysql-client
dpkg -i base
dpkg -i agent
dpkg -i server
dpkg -i server-mysql

It is definitely related to the library though.  If I change the config to use the sqlite library then everything runs fine.  Of course do not want to use this, so need the mysql solution.  Will probably try downloading and installing library from source.

Stuck, please help.