PET Installation Instructions

for Linux Operating Systems

Follow these steps to install PET on your Linux based computer. These steps were written for Fedora Core 7, but should work with any RPM based Linux distribution. You must be logged in as root while following these instructions. You can use the command su - to login as root. Throughout this document statements such as "as root" will be made to remind you that you must be logged in as root to execute a command.
  1. Download and install the Java J2SE Development Kit (JDK) from Sun. See the "Popular Downloads" section on the right of the Sun webpage for quick access to Java SE. Clicking on Java SE will display a page where JDK may be downloaded. On the next page click "Accept" then download the "Linux RPM in self-extracting file".
    1. Type (as root) rm -f /usr/bin/java to remove the GNU Java virtual machine from your path (this has no effect if you do not have the GNU Java compiler or any other Java compiler in that location). Note that this is a symbolic link, and it can be recreated later to restore the use of the Java virtual machine that comes with Fedora.
    2. Type sh jdk-6u2-linux-i586-rpm.bin in the directory where you downloaded Java (JDK). Replace the name jdk-6u2-linux-i586-rpm.bin with the name of your downloaded file.
  2. Download and install PET
    1. Download pet.tgz.
    2. As root, untar pet.tgz into /usr/local/. Using a command like cd /usr/local/
      tar zxf pet.tgz
      . You must replace pet.tgz with the location of your pet.tgz file. There should now be a directory named /usr/local/pet.
  3. Build and install the Perl modules that PET depends on.
    1. Install devel packages for Gtk2, Glade2, and Expat with commands like yum install gtk2-devel
      yum install libglade2-devel
      yum install expat-devel
    2. Install the Gnu C and C++ compilers with a command like yum install gcc gcc-c++.
    3. Change to the PET directory cd /usr/local/pet
    4. Set the path to Java with a command like export J2SDK=/usr/java/default.
    5. As root, build and install the Perl modules PET uses with the command make -e perl_modules Note that this command takes less than 10 minutes on a fast machine and could take up to an hour on a slow machine. Please be patient.
  4. Make a link to PET from a directory in your PATH.
    1. Change to a directory in your path with a command like cd /usr/local/bin
    2. As root, make a link to PET with the command ln -s /usr/local/pet/pet.sh pet
You can now run PET with the command pet as any user in any directory. You may need to log out and log back in after following these instructions to ensure all changes take effect. For questions and comments email Jason Zwolak.

* A Fortran compiler is not necessary to run PET, but it is necessary to simulate models and estimate parameters within PET.