From src

From NetXMS Wiki
Jump to navigation Jump to search

Debian 7.4 + MySQL

Using netxms-1.2.12.tar.gz Give rights to create local software

sudo adduser YourUser staff

Prepare environment:

sudo apt-get install build-essential flex bison libssl-dev libmysqlclient-dev mysql-server

Prepare database

mysql -u root -p
CREATE DATABASE netxms;
GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'password';
\q

Copy last version of src package to local folder, unpack:

cp netxms-1.2.12.tar.gz /usr/local/src/
tar -xf netxms-1.2.12.tar.gz

Configure & make:

./configure --with-server --with-agent --with-mysql --enable-unicode
make
make install

Copy to /etc

sudo cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
sudo cp contrib/nxagentd.conf-dist /etc/nxagentd.conf

Edit config files:

/etc/netxmsd.conf
/etc/nxagentd.conf

/etc/nxagentd.conf

LogFile = {syslog}
Servers = localhost

Configure startup scripts

cd /usr/local/src/netxms-1.2.12/contrib/startup/debian/
sudo cp netxmsd /etc/init.d/
sudo cp nxagentd /etc/init.d/
sudo chmod u+x /etc/init.d/nxagentd
sudo chmod u+x /etc/init.d/netxmsd
sudo update-rc.d nxagentd defaults
sudo update-rc.d netxmsd defaults

Debian 7 + oracle

Using git hourly snapshot

Give rights to create local software

sudo adduser YourUser staff

Prepare environment:

sudo apt-get install build-essential flex bison libssl-dev autoconf libtool unzip

Install oracle driver libs

Get oracle libs from site: | oracle

instantclient-basic-linux.x64-11.2.0.4.0.zip
instantclient-sdk-linux.x64-11.2.0.4.0.zip

Unzip files:

unzip instantclient-basic-linux.x64-11.2.0.4.0.zip
unzip instantclient-sdk-linux.x64-11.2.0.4.0.zip

Copy to workdir:

cp -R instantclient_11_2/ /usr/local/lib/

Link one of needed libs:

cd /usr/local/lib/instantclient_11_2/
ln -s libclntsh.so.11.1 libclntsh.so

Main process

Get latest git-snapshot:

wget http://git.netxms.org/netxms-snapshot.tar.gz

move to workdir

mkdir -p /usr/local/src/netxms-git
cp netxms-snapshot.tar.gz /usr/local/src/netxms-git

Extract files

cd /usr/local/src/netxms-git/
tar -xf netxms-snapshot.tar.gz

Configure & compile

.reconf
./configure --enable-unicode --with-agent --with-oracle=/usr/local/lib/instantclient_11_2/ --with-server --with-snmp
make
make install

Make startup configuration as described above (Debian 7 + Mysql)

Prepare database as described: Oracle