next up previous

2 Installing PVM     continued...

Whichever method used above, uncompress the resultant file by executing the command

> uncompress pvm3.3.3.tar.Z
then untar the file with
> tar -xvf pvm3.3.3.tar
This last step will create a pvm3 directory with source code and makefiles for many different machines included. These source files for PVM will take up about 1 Mbyte when uncompressed and unpacked.

To build the executable for your target machine, type the command make while in the pvm3 directory. This will automatically determine the architecture (PVM_ARCH) you are using and compile the source files with the appropriate system libraries. This process will create four files in the pvm3/lib/PVM_ARCH directory:

libfpvm3.a      libpvm3.a       pvm             pvmd3

For example, if you were to build PVM on makina1, and this machine were a Sun 4, the above files would be found in the directory pvm3/lib/SUN4. The *.a files are PVM library routines, pvmd3 is the daemon that handles the execution of PVM applications and pvm is the PVM console program.

You should copy the file pvm3/lib/cshrc.stub into your .cshrc file on all machines you wish to run PVM applications. This stub will automatically determine the type of architecture it is on and set up environment variables (PVM_ROOT and PVM_ARCH) for PVM to use. The stub can also add the directory of your PVM executables. The stub must be placed in a position after your path variable has been defined within the .cshrc file. A copy of the cshrc.stub file is included in the Appendix of this guide for those users that do not need to install their own copies of PVM.