Hello !
we're trying to install the NAV Software on a FreeBSD 5.4 machine. We followed the steps described in "Getting Startet". Tomcat, PostgreSQL and Crickt run proper, but Python doesn't seem to work.
Make sure that Apache load the Python module, like this in httpd.conf :
LoadModule python_module libexec/apache2/mod_python.so
<Directory "/usr/local/nav/apache/webroot"> Options Indexes FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all </Directory>
Alway use bash as your shell, and here is my .bash_profile (for root) :
export JAVALIBDIR=/usr/local/nav/lib/java export PYTHONLIBDIR=/usr/local/nav/lib/python export PERLLIBDIR=/usr/local/nav/lib/perl export PYTHONPATH=/usr/local/nav/lib/python export JAVA_HOME=/usr/local/jdk1.4.2 export PATH=$PATH:/usr/local/nav/bin:/usr/local/jdk1.4.2/bin export PERL5LIB=/usr/local/nav/lib/perl:/usr/local/cricket/cricket/lib export CLASSPATH="`echo /usr/local/nav/lib/java/*.jar | tr ' ' ':'`:/usr/local/share/java/classes/postgresql.jar:/usr/local/share/java/classes/snmp.jar:/usr/local/tomcat5.5/common/lib/servlet-api.jar"
-- Med vennlig hilsen / Regards;
Roar Pettersen Universitetet i Bergen - The University of Bergen Nygardsgt. 5 - N-5020 BERGEN - Norway Tlf: +47 55 58 40 55 VIP: 81503 fax: +47 55 58 40 70 roar.pettersen@it.uib.no - IT-Avd, UiB - http://www.uib.no
From gsri11 at yahoo.co.in Wed Jul 26 17:05:10 2006
From: gsri11 at yahoo.co.in (rajesh) Date: Wed Jul 26 17:05:30 2006 Subject: [Nav-users] cricket compilation error 2nd time please help me Message-ID: 20060726150510.6719.qmail@web8902.mail.in.yahoo.com
Hi,
I am trying to compile cricket in my debian linux machine using the following command
#/usr/lib/nav/makecricketconfig.pl
No path to Cricket specified, searching default paths... Searching in /home/navcron/cricket. Searching in /usr/local/cricket. Found cricket in /usr/local/cricket. Use of uninitialized value in concatenation (.) or string at /usr/lib/nav/makecricketconfig.pl line 82. Can't locate ConfigTree/Cache.pm in @INC (@INC contains: /lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/lib/nav/makecricketconfig.pl line 84. BEGIN failed--compilation aborted at /usr/lib/nav/makecricketconfig.pl line 84.
$gCricketHome in my cricket-conf.pl
$gCricketHome = "/usr/local/cricket"; $gInstallRoot = "$gCricketHome/cricket"; $gConfigRoot = "$gCricketHome/cricket-config";
I am trying to compile second time and i am feeling very difficult to install NAV i don't know how other people are installing and i need to show demo in my office before going in to production.I am really hope some NAV expert will help me to fix this error.
I am installing debian sarge packages after that i am following readme file available in /usr/share/doc/nav/ folder
Thanks for your help
--------------------------------- Here?s a new way to find what you're looking for - Yahoo! Answers
From tv at solnet.ch Thu Jul 27 14:50:48 2006
From: tv at solnet.ch (Thomas Vogt) Date: Thu Jul 27 13:50:58 2006 Subject: [Nav-users] freebsd 6.1 and nav from subversion In-Reply-To: Pine.SOC.4.64.0607241328090.8323@alf.uib.no References: 1152617345.5105.11.camel@bert.mlan.solnet.ch Pine.SOC.4.64.0607111423180.20956@alf.uib.no 1153152217.27078.8.camel@bert.mlan.solnet.ch 44BC8EB7.5010705@uninett.no 1153215985.29990.8.camel@bert.mlan.solnet.ch 44BF2701.7050000@uninett.no 44BF3229.5030102@solnet.ch 1153471418.3219.7.camel@bert.mlan.solnet.ch Pine.SOC.4.64.0607241328090.8323@alf.uib.no Message-ID: 1154001048.6284.6.camel@bert.mlan.solnet.ch
Hello
Thank for all the tips. Now most things work as expected. Sometimes when I try to re-compile a the trunk version or update to a newer trunk version I get:
BUILD SUCCESSFUL Total time: 6 seconds Building webapps/navAdmin ... (cd webapps/navAdmin && /usr/local/bin/ant ) && touch webapps/navAdmin Buildfile: build.xml
prepare:
compile: [javac] Compiling 16 source files to /usr/ports/net-mgmt/nav/work/nav-3.1.0/src/webapps/navAdmin/build
[javac] /usr/ports/net-mgmt/nav/work/nav-3.1.0/src/webapps/navAdmin/src/Boks.java:9: package javax.servlet does not exist [javac] import javax.servlet.*; [javac] ^
[javac] /usr/ports/net-mgmt/nav/work/nav-3.1.0/src/webapps/navAdmin/src/Boks.java:10: package javax.servlet.http does not exist [javac] import javax.servlet.http.*;
It doesn't always happen. So I guess it could be a env. problem but I'm not sure.
I set: JAVALIBDIR=/usr/local/nav/lib/java PYTHONLIBDIR=/usr/local/nav/lib/python PERLLIBDIR=/usr/local/nav/lib/perl PYTHONPATH=/usr/local/nav/lib/python JAVA_HOME=/usr/local/diablo-jdk1.5.0 PATH=$PATH:/usr/local/nav/bin:/usr/local/diablo-jdk1.5.0/bin PERL5LIB=/usr/local/nav/lib/perl:/usr/local/cricket/cricket/lib CLASSPATH="`echo /usr/local/nav/lib/java/*.jar | tr ' ' ':'`:/usr/local/share/java/classes/postgresql.jar:/usr/local/share/java/classes/snmp.jar" export PYTHONPATH JAVA_HOME PATH PERL5LIB CLASSPATH PERLLIBDIR PYTHONLIBDIR JAVALIBDIR
Tomcat env: CATALINA_BASE=/usr/local/tomcat5.5 CATALINA_HOME=/usr/local/tomcat5.5 CATALINA_TMPDIR=/usr/local/tomcat5.5/temp
Is there something missing? Do I've to set something else?
Cheers, Thomas Vogt
Am Montag, den 24.07.2006, 13:30 +0200 schrieb Roar Pettersen:
Hello !
Is there an example for the tomcat configuration?
Here is my quick Tomcat 5.5 config on a FreeBSD system :
Edited /usr/local/tomcat5.5/conf/server.xml so the following was present:
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" address="127.0.0.1" maxHttpHeaderSize="8192"
cd /usr/local/tomcat5.5/webapps ln -s /usr/local/nav/apache/webapps/*.war .
cd /usr/local/tomcat5.5/shared/lib ln -s /usr/local/nav/lib/java/*.jar .
Now it is time to re-start the tomcat server.
-- Med vennlig hilsen / Regards;
Roar Pettersen Universitetet i Bergen - The University of Bergen Nygardsgt. 5 - N-5020 BERGEN - Norway Tlf: +47 55 58 40 55 VIP: 81503 fax: +47 55 58 40 70 roar.pettersen@it.uib.no - IT-Avd, UiB - http://www.uib.no