ENGLISH | JAPANESE |
[ToDO] We show how more stable system can be built on Linux. The content present in this guide mostly concerns the programming environment where programmers can rapidly develop prototypes. This appendix should show how to develop prototypes into more stable, reliable systems, using only open source software.
First of all, happily, you do not need to build a Unix-like environment as you have to do on Windows9X because Linux is already a UNIX. Installation of Java, prolog, and JPL, is not as complicated as you have to manage on Windows.
Sun provides us with JDK-1.2.2 for Solaris, which works fine. You can alternatively try JDK-1.3 distributed by IBM.(2) I found no problem in installing and using JDK-1.2.2 provided by Sun. You should, however, not forget to include lib/tools.jar in your classpath.
There is not any problem in installing SWI-prolog on Linux. Do not forget to copy (or move) runtime/libpl.a to /usr/lib.
You can create a SWI_prolog capable of handling multi-threads. The version does, however, not work with JPL, a Java Prolog interface. So do not be bothered with it.
You follow the same instruction as given in the content of this guide. You should, however, use jpl/src/Makefile to compile libjpl.so. Copy libjpl.so which you have created under jpl/lib to some directory, e.g., /usr/lib, and add it to the variable, LD_LOAD_PATH, so that the shared library object can be evoked on the spot.
You only need to install Tomcat to run servlets, but you may want to add it to your Apache Web Server. The instruction is given in the reference manual of Tomcat under jakarta-tomcat/doc/uguide/tomcat_ug.html. In short, you first run Tomcat and terminate it, then. There must be a file, jakarta-tomcat/conf/tomcat-apache.conf. You should then edit httpd.conf of Apache to include the file by adding a few lines.
Some other minor points to note are:
The shell script did not work on my environment. If you encounter the same problem, try the following:
java -classpath $CLASSPATH org.apache.tools.ant.Main -Dtomcat.home=$TOMCAT_HOMEYou have to include ant.jar, xml.jar, jasper.jar, servlet.jar, and webserver.jar to your classpath, though. (They are all found under $TOMCAT_HOME/lib)
There is nothing special to Linux. You can just do the same thing as you are on Windows.