This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
installing_from_source_on_debian [2009/03/26 12:21] morten Update for Debian Lenny and NAV 3.5 |
installing_from_source_on_debian [2010/02/10 12:15] lkarsten don't use make -jX |
||
---|---|---|---|
Line 26: | Line 26: | ||
<code> | <code> | ||
- | 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 libpg-perl libsnmp1.4-java \ | ||
Line 38: | Line 38: | ||
</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''). | + | **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: |
+ | |||
+ | <code> | ||
+ | sudo update-alternatives --config java | ||
+ | sudo update-alternatives --config javac | ||
+ | </code> | ||
Next, NAV's build time dependencies: | Next, NAV's build time dependencies: | ||
Line 56: | Line 61: | ||
sudo make install | sudo make install | ||
</code> | </code> | ||
- | + | 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 90: | ||
:!: Then, take the password you chose for the database user and put this as the value to the ''userpw_nav'' option in ''/usr/local/nav/etc/db.conf''. | :!: Then, take the password you chose for the database user and put this as the value to the ''userpw_nav'' option in ''/usr/local/nav/etc/db.conf''. | ||
- | ===== Fixing Python ===== | + | ===== 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. We do however want them available for use systemwide: | ||
<code> | <code> | ||
- | sudo bash -c 'cat << EOF > /usr/local/lib/python2.5/site-packages/sitecustomize.py | + | sudo bash -c 'cat << EOF >> /etc/python2.5/sitecustomize.py |
import sys | import sys | ||
__navpath = "/usr/local/nav/lib/python" | __navpath = "/usr/local/nav/lib/python" |