Compiling From Source

PGOPHER is mainly written in Pascal, using the object oriented extensions originally available from the Borland Pascal compiler and now also available in the Free Pascal compiler (not GNU Pascal). The program is ditributed as a zip file. Unpack this in a directory on its own, which will create 4 sub-directories.

Microsoft Windows

The current version is compiled with Borland Delphi 2005, though it should compile with any recent version (6 or later) with minor modifications. The mkpgopher.bat file in the pgopher directory will compile it from the command line. Alternatively install the utils/Putils.dpk and wutils/Pcontrols.dpk packages into the IDE, after which the pgopher/Pgopher.dpr project can be loaded and compiled in the IDE. Compilation using Free Pascal and Lazarus as described for Linux and Mac below should also be possible, though this has not been tested.

Linux/Mac

The current version is compiled using Free Pascal (http://www.freepascal.org) and Lazarus (http://www.lazarus.freepascal.org). At the moment the development version of both is required for correct operation. For Free Pascal see the development section (the 2.1.x version is required). For Lazarus see Source from CVS. Additional libraries will normally be required, typically -devel versions of packages; these can be installed using the standard package system for your distribution (Linux) or Fink on a Mac. Given this installation, PGOPHER can be compiled with the mkpgopher script in the pgopher directory (the LAZDIR variable may need setting manually). Alternatively install the utils/Putils.lpk and wutils/Pcontrols.lpk packages into the IDE, after which the pgopher/Pgopher.lpr project can be loaded and compiled in the IDE