| Version 7 (modified by , 19 years ago) ( diff ) |
|---|
How to Get PAN Compiler
TracNav
Binary Packages
Binary packages for the pan compiler are built with the ETICS system. The code is 100% java is is machine independent. (Although there are command line scripts that depend on the platform.) The pan compiler packages can be found in the ETICS repository. Navigate to the format that is most convenient for you.
Currently only the linux builds work with ETICS. You will need to build the DMG from the sources for Mac OS X.
Sources
Checkout of Sources
The source for the pan compiler is managed through a subversion repository. The mainline development ("trunk") can be checked out with a subversion client with the command:
svn checkout https://svn.lal.in2p3.fr/LCG/QWG/Sources/panc/trunk
Specific versions of the compiler can be checked out from the tags area:
svn checkout https://svn.lal.in2p3.fr/LCG/QWG/Sources/panc/tags/7.1.11
where the tags correspond to the version of the compiler. All of the tags can be found by pointing a web browser at the subversion repository. The source may also be browsed through Trac.
The major version of the pan compiler changes when there are changes to the pan language itself. The minor version (second number) changes when there are significant changes in the compiler. Note that even minor versions are considered "stable" and odd minor versions are considered "development". The patch number changes when small changes and bug fixes are made to the compiler.
Building
Correctly building the java-implementation of the pan compiler requires version 1.5.0 or later of a Java Development Kit (JDK). Many linux distributions include the GNU implementation of java; the GNU implementation is not sufficient to build or run the pan compiler. Full versions of java for linux, solaris, and windows can be obtained from Sun.
The build of the compiler is done via ant that also depends on java. For ant to find the correct version, the environment variable JAVA_HOME should be defined:
export JAVA_HOME=<path to java area>
or
setenv JAVA_HOME <path to java area>
depending on the type of shell that you use. After that, the entire build can be accomplished with:
./external/apache-ant/bin/ant --noconfig
where the current working directory is the root of the directory checked out from subversion. The default build will compile all of the java sources, run the unit tests, and package the compiler. Tarballs (plain, gzipped, and bzipped) as well as a zip file are created on all platforms. The build will also create an RPM on platforms that support it and a DMG file for Mac OS X. The final packages can be found in the "build/packages" subdirectory.