installing_from_source_on_debian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| installing_from_source_on_debian [2010/02/10 12:15] – don't use make -jX lkarsten | installing_from_source_on_debian [2011/06/24 08:05] (current) – [Installing dependencies] vegardv | ||
|---|---|---|---|
| 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-java libsnmp1.4-java python-pysnmp2 logrotate |
| - | | + | |
| - | | + | |
| - | python-egenix-mxdatetime | + | python-ldap python-psycopg2 |
| - | python-forgetsql | + | |
| - | python-ldap python-psycopg | + | python-rrd rrdtool |
| - | python-pyrad python-rrd makepasswd | + | |
| - | | + | |
| </ | </ | ||
| - | **OR**, check out Morten Werner Forsbring' | + | Be aware that NAV doesn' |
| < | < | ||
| Line 48: | Line 43: | ||
| < | < | ||
| - | sudo aptitude install ant autoconf libsnmp1.4-java python python-cheetah sun-java5-jdk | + | sudo aptitude install ant autoconf |
| </ | </ | ||
| ===== Unpacking and building NAV ===== | ===== Unpacking and building NAV ===== | ||
| < | < | ||
| - | tar xvzf nav-3.5.2.tar.gz | + | tar xvzf nav-3.7.0.tar.gz |
| - | cd nav-3.5.2 | + | cd nav-3.7.0 |
| - | autoconf | + | |
| ./configure CRICKETDIR=/ | ./configure CRICKETDIR=/ | ||
| - | export CLASSPATH=/ | + | export CLASSPATH=/ |
| 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 this because we don't install the libraries to the systemwide Python library directories |
| < | < | ||
| sudo bash -c 'cat << EOF >> / | sudo bash -c 'cat << EOF >> / | ||
| Line 110: | Line 104: | ||
| sudo ln -s / | sudo ln -s / | ||
| sudo ln -s / | sudo ln -s / | ||
| - | </ | ||
| - | |||
| - | ===== Fixing Perl libraries ===== | ||
| - | < | ||
| - | cd / | ||
| - | sudo ln -s / | ||
| </ | </ | ||
| Line 157: | Line 145: | ||
| sudo invoke-rc.d apache2 force-reload | sudo invoke-rc.d apache2 force-reload | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| ===== Cleaning up and configuring ===== | ===== Cleaning up and configuring ===== | ||
| Line 177: | Line 162: | ||
| Optionally make the nav process control command more available: '' | Optionally make the nav process control command more available: '' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| Line 231: | Line 210: | ||
| < | < | ||
| - | 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 | + | Run '' |
| < | < | ||
| cd / | cd / | ||
| - | sudo -u navcron ./makecricketconfig.pl | + | sudo -u navcron ./mcc.py |
| </ | </ | ||
| Line 242: | Line 221: | ||
| sudo ./nav start cricket | sudo ./nav start cricket | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| ==== Cricket Web ==== | ==== Cricket Web ==== | ||
installing_from_source_on_debian.1265804118.txt.gz · Last modified: by lkarsten
