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 [2009/03/26 12:21] – Update for Debian Lenny and NAV 3.5 morten | 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 26: | Line 23: | ||
| < | < | ||
| - | 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' |
| + | |||
| + | < | ||
| + | sudo update-alternatives --config java | ||
| + | sudo update-alternatives --config javac | ||
| + | </ | ||
| Next, NAV's build time dependencies: | Next, NAV's build time dependencies: | ||
| < | < | ||
| - | 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 | ||
| </ | </ | ||
| - | + | Note: avoid using -j when calling make. It will break the build, since make tries to run many ant processes with interdependencies at the same time. | |
| - | + | ||
| Line 87: | Line 84: | ||
| :!: Then, take the password you chose for the database user and put this as the value to the '' | :!: Then, take the password you chose for the database user and put this as the value to the '' | ||
| - | ===== Fixing Python ===== | + | ===== Fixing Python |
| - | 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 > /usr/ | + | sudo bash -c 'cat << EOF >> /etc/ |
| import sys | import sys | ||
| __navpath = "/ | __navpath = "/ | ||
| Line 106: | Line 104: | ||
| sudo ln -s / | sudo ln -s / | ||
| sudo ln -s / | sudo ln -s / | ||
| - | </ | ||
| - | |||
| - | ===== Fixing Perl libraries ===== | ||
| - | < | ||
| - | cd / | ||
| - | sudo ln -s / | ||
| </ | </ | ||
| Line 153: | 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 173: | Line 162: | ||
| Optionally make the nav process control command more available: '' | Optionally make the nav process control command more available: '' | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| Line 227: | 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 238: | Line 221: | ||
| sudo ./nav start cricket | sudo ./nav start cricket | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| ==== Cricket Web ==== | ==== Cricket Web ==== | ||
installing_from_source_on_debian.1238070112.txt.gz · Last modified: by morten
