### Compilation on unix platforms

If you plan to contribute code, pgAdmin3 requires wxWindows from CVS version > 20030607. We have our own version which is preferred as it is well tested and includes a number of additional patches (we use the CVS version of wxWindows because it supports Unicode, and sizes controls much more nicely on *nix systems). Use a recent GNU/Linux distro because recent versions of GTK2.2, automake and autoconf are needed. You will also need a copy of PostgreSQL on your development system.

1. We provide a set of four wxGTK2 binaries (wxGTK2ud, wxGTK2ud-devel, wxGTK2ud-xrc and wxGTK2ud-stc) suited for pgAdmin3 development, compiled with Unicode and logging and linked against GTK 2.2, as described in the binary snapshots instructions. These binaries are only available for RedHat 9, Mandrake 9.1 and SuSE 8.2. If you install our wxGTK2 RPMs, please skip to step 6. Otherwise, if you wish to install wxGTK 2.5 from source, continue with step 2.

2. Download our supported wxWindows CVS version from . Alternatively, you can install our wxGTK2 RPMs which provide all needed libraries and headers files, as described in the binary snapshots instructions.

       # wget http://www.pgadmin.org/snapshots/wxWindows/wxWindows-pgAdmin3-2003xxxx.tar.gz
       # tar -zxf wxWindows-pgAdmin3-2003xxxx.tar.gz

3. (don't forget to replace the xxxx with the current version month and day). Install wxWindows from source as follows:

       # cd wxWindows-pgAdmin3
       # ./configure --with-gtk --enable-gtk2 --enable-unicode --disable-shared --enable-debug
       # make
       # make install
       # ldconfig

4. Install the wxWindows Styled Text Control as follows:

       # cd contrib/src/stc
       # make
       # make install
       # ldconfig

5. Install the wxWindows XML Recources as follows:# cd ../xrc

       # make
       # make install
       # ldconfig

6. Download and unpack the pgAdmin source code.

       If you wish to use CVS code:
       # CVSROOT=:pserver:anonymous@cvs.pgadmin.org:/disk1/cvsroot export CVSROOT
       # cvs login
       # cvs -z9 checkout pgadmin3
       # cd pgadmin3
       # sh bootstrap

       or, if you wish to use the latest source tarball:

       # wget http://www.pgadmin.org/snapshots/pgadmin3-Alpha-src.tar.gz
       # tar -zxvf pgadmin3-Alpha-src.tar.gz
       # cd pgadmin3

       Now the source is downloaded:

       # ./configure --enable-static --enable-debug
       # make all
       # make install

If you are compiling on FreeBSD, please see these additional notes.