Compilation on unix platforms

If you plan to contribute code, pgAdmin3 requires wxWidgets 2.5.3. On Mac OSX systems, you may need to use a newer CVS snapshot (the OSX port of pgAdmin is currently experimental). 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 to link libpq. We recommend using libpq 7.4 or newer, compiled with --enable-thread-safety.

  1. Download wxWidgets 2.5.3 from the wxWidgets website.

    # wget http://heanet.dl.sourceforge.net/sourceforge/wxWidgets/wxGTK-2.5.3.tar.gz
    # tar -zxf wxGTK-2.5.3.tar.gz
  2. Install wxWidgets from source as follows:

    # cd wxWidgets-2.5.3
    # ./configure --with-gtk --enable-gtk2 --enable-unicode --disable-shared --enable-debug
    # make
    # make install
    # ldconfig
  3. Install the wxWidgets Styled Text Control as follows:

    # cd contrib/src/stc
    # make
    # make install
    # ldconfig
  4. Download and unpack the pgAdmin source code.

    If you wish to use CVS code:
    	
    # CVSROOT=:pserver:anonymous@cvs.pgadmin.org:/projects 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-src.tar.gz
    # tar -zxvf pgadmin3-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.