Difference between revisions of "From src"

49 bytes added ,  21:25, 9 March 2014
m
Still rewriting
m (Still rewriting)
Line 1: Line 1:
=Get git latest snapshot=
=System=
install git
To work in /usr/local directory you need rights of group staff
  apt-get install git
  sudo adduser User staff


crate local copy of repo
Recomended to use git to get latest data.
sudo apt-get install git
 
=Latest snapshot=
Create local copy of repository
<pre>
<pre>
cd /usr/local/src/
git clone git://git.netxms.org/public/netxms.git netxms-git
git clone git://git.netxms.org/public/netxms.git netxms-git
</pre>
</pre>
reconfig
 
cd netxms-git
Or you can get latest snapshot from website
./reconf
<pre>
wget http://git.netxms.org/netxms-snapshot.tar.gz
mkdir -p /usr/local/src/netxms-git
cp netxms-snapshot.tar.gz /usr/local/src/netxms-git
tar -xf netxms-snapshot.tar.gz
</pre>


=Debian 7.4 + MySQL=
=Debian 7.4 + MySQL=
Using netxms-1.2.12.tar.gz
Give rights to create local software
sudo adduser YourUser staff
Prepare environment:
Prepare environment:
  sudo apt-get install build-essential flex bison libssl-dev libmysqlclient-dev mysql-server
  sudo apt-get install build-essential flex bison libssl-dev libmysqlclient-dev mysql-server
Line 25: Line 30:
  GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'password';
  GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'password';
  \q
  \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 & make:
Line 34: Line 35:
  make
  make
  make install
  make install
May be some troubles with libraries
cd /usr/local/lib
sudo ldconfig


Copy to /etc
Copy to /etc
Line 40: Line 45:


Edit config files:
Edit config files:
/etc/netxmsd.conf
 
  /etc/nxagentd.conf
/etc/netxmsd.conf
  DBDriver = /usr/local/lib/libnxddr_mysql.so
DBServer = localhost
DBName = netxms
DBLogin = netxms
DBPassword = password
LogFile = /var/log/netxms


/etc/nxagentd.conf
/etc/nxagentd.conf
Line 57: Line 68:


=Debian 7 + oracle=
=Debian 7 + oracle=
Using git hourly snapshot
Give rights to create local software
sudo adduser YourUser staff


Prepare environment:
Prepare environment:
Line 85: Line 92:
  ln -s instantclient_11_2/lib* ./
  ln -s instantclient_11_2/lib* ./
  sudo ldconfig
  sudo ldconfig
===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
Configure & compile
cd /usr/local/src/netxms-git
  .reconf
  .reconf
  ./configure --enable-unicode --with-agent --with-oracle=/usr/local/lib/instantclient_11_2/ --with-server --with-snmp
  ./configure --enable-unicode --with-agent --with-oracle=/usr/local/lib/instantclient_11_2/ --with-server --with-snmp
  make
  make
  make install
  make install
May be some troubles with libraries
cd /usr/local/lib
sudo ldconfig


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


Prepare database as described: [[Oracle]]
Prepare database as described: [[Oracle]]
38

edits