User Tools

Site Tools


installing_from_source_on_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installing_from_source_on_debian [2010/02/10 12:15]
lkarsten don't use make -jX
installing_from_source_on_debian [2011/06/24 08:05] (current)
vegardv [Installing dependencies]
Line 4: Line 4:
 Versions used: Versions used:
 ^ Debian | 5.0 (//Lenny//) | ^ Debian | 5.0 (//Lenny//) |
-^ NAV    | 3.5.2           | +^ NAV    | 3.7             |
- +
- +
  
  
Line 28: Line 25:
 sudo aptitude install perl python sun-java6-jdk apache2-mpm-prefork \ sudo aptitude install perl python sun-java6-jdk apache2-mpm-prefork \
                       cricket postgresql-8.3 libapache2-mod-python \                       cricket postgresql-8.3 libapache2-mod-python \
-                      libpg-java ​libpg-perl ​libsnmp1.4-java ​+                      libpg-java libsnmp1.4-java python-pysnmp2 logrotate ​
-                      ​python-pysnmp2 logrotate python-cheetah ​+       ​python-cheetah python-xmpp python-django \ 
-                      ​python-xmpp python-django \ +       ​python-egenix-mxdatetime python-gammu python-ipy \ 
-                      python-egenix-mxdatetime ​python-forgethtml \ +                      python-ldap python-psycopg2 ​python-pyrad 
-                      python-forgetsql ​python-gammu python-ipy \ +       ​python-pysnmp-se ​python-twisted python-twisted-snmp ​
-                      python-ldap python-psycopg ​python-psycopg2 ​+       python-rrd rrdtool ​samba-common
-                      python-pyrad python-rrd makepasswd ​+
-                      ​wwwconfig-common ​samba-common+
 </​code>​ </​code>​
  
-**OR**, check out Morten Werner Forsbring'​s dummy NAV package, which depends on all of the above. ​ See the following nav-users posting for details: https://​postlister.uninett.no/​sympa/​arc/​nav-users/​2008-02/​msg00001.html . Be aware that NAV doesn'​t run well under the //kaffe// Java VM, which is why you should confirm that Sun's Java JDK is installed (''​sun-java6-jdk''​) and is the active alternative for the ''​java''​ and ''​javac''​ commands:+Be aware that NAV doesn'​t run well under the //kaffe// Java VM, which is why you should confirm that Sun's Java JDK is installed (''​sun-java6-jdk''​) and is the active alternative for the ''​java''​ and ''​javac''​ commands:
  
 <​code>​ <​code>​
Line 48: Line 43:
  
 <​code>​ <​code>​
-sudo aptitude install ant autoconf libsnmp1.4-java python python-cheetah sun-java5-jdk+sudo aptitude install ant autoconf ​automake ​libsnmp1.4-java python python-cheetah sun-java5-jdk ​make
 </​code>​ </​code>​
  
 ===== Unpacking and building NAV ===== ===== Unpacking and building NAV =====
 <​code>​ <​code>​
-tar xvzf nav-3.5.2.tar.gz +tar xvzf nav-3.7.0.tar.gz 
-cd nav-3.5.+cd nav-3.7.0
-autoconf+
 ./configure CRICKETDIR=/​usr/​share/​cricket ./configure CRICKETDIR=/​usr/​share/​cricket
-export CLASSPATH=/​usr/​share/​java/​libsnmp-1.4.jar:/​usr/​share/​java/​postgresql.jar+export CLASSPATH=/​usr/​share/​java/​libsnmp-1.4.jar
 make make
 sudo make install sudo make install
Line 91: Line 85:
  
 ===== Fixing Python library path ===== ===== Fixing Python library path =====
-We do this because we don't install the libraries to the systemwide Python library directories. ​ We do however want them available for use systemwide:+We do this because we don't install the libraries to the systemwide Python library directories ​by default.  We do however want them available for use systemwide:
 <​code>​ <​code>​
 sudo bash -c 'cat << EOF >> /​etc/​python2.5/​sitecustomize.py sudo bash -c 'cat << EOF >> /​etc/​python2.5/​sitecustomize.py
Line 110: Line 104:
 sudo ln -s /​usr/​share/​java/​postgresql.jar sudo ln -s /​usr/​share/​java/​postgresql.jar
 sudo ln -s /​usr/​share/​java/​libsnmp-1.4.jar sudo ln -s /​usr/​share/​java/​libsnmp-1.4.jar
-</​code>​ 
- 
-===== Fixing Perl libraries ===== 
-<​code>​ 
-cd /​usr/​share/​perl5 
-sudo ln -s /​usr/​local/​nav/​lib/​perl/​NAV* . 
 </​code>​ </​code>​
  
Line 157: Line 145:
 sudo invoke-rc.d apache2 force-reload sudo invoke-rc.d apache2 force-reload
 </​code>​ </​code>​
- 
- 
- 
  
 ===== Cleaning up and configuring ===== ===== Cleaning up and configuring =====
Line 177: Line 162:
  
 Optionally make the nav process control command more available: ''​sudo ln -s /​usr/​local/​nav/​bin/​nav /​usr/​sbin/​nav''​ Optionally make the nav process control command more available: ''​sudo ln -s /​usr/​local/​nav/​bin/​nav /​usr/​sbin/​nav''​
- 
- 
- 
- 
- 
- 
  
  
Line 231: Line 210:
 <​code>​sudo -u navcron cricket-compile</​code>​ <​code>​sudo -u navcron cricket-compile</​code>​
  
-Run makecricketconfig.pl to create config from the database. The first time, remember that the database should contain data before doing this. Also, it's a good idea to start getDeviceData ​and let it run a good couple of minutes before making the cricket-config as it then will have gathered and stored ​data in the database.+Run ''​mcc.py'' ​to create config from the database. The first time, remember that the database should contain data before doing this. Also, it's a good idea to start ''​ipdevpoll'' ​and let it run a good couple of minutes before making the cricket-config as it then will have gathered and stored ​information about devices and interfaces ​in the database.
 <​code>​ <​code>​
 cd /​usr/​local/​nav/​bin cd /​usr/​local/​nav/​bin
-sudo -u navcron ./makecricketconfig.pl+sudo -u navcron ./mcc.py
 </​code>​ </​code>​
  
Line 242: Line 221:
 sudo ./nav start cricket sudo ./nav start cricket
 </​code>​ </​code>​
- 
- 
- 
- 
- 
- 
  
 ==== Cricket Web ==== ==== Cricket Web ====
installing_from_source_on_debian.1265804118.txt.gz · Last modified: 2010/02/10 12:15 by lkarsten