2.5. Mac - GnuMED on MacOSX 10.2

2.5.1. System

Install the Developer's applications from the Developer's CD that comes with MacOSX10.2 Make sure you have installed security update 2002-08-23 as well as MaxOSX 10.2

2.5.2. Instaling Python and wxWindows

Download the latest versions of MachoPython and wxPythonOSX from Sourceforge

The versions at time of writing (8 Sept 2002) were MachoPython-2.2.1-4.dmg and wxPythonOSX-2.3.3pre6.dmg respectively.

These files are disk images. Open and install them by doubleclicking the MachoPython.pkg package and then wxPythonOSX.pkg

2.5.3. Install mx extensions

Download the mx extensions from Egenix (The latest version can be found at this site.)

The .tar.gz file will be uncompressed as egenix-mx-base-2.0.3

Open the terminal application and CD to the directory egenix-mx-base-2.0.3 type:

su root
password
python setup.py install
exit

2.5.4. Installing postgresql

Good instructions for installing Postgresql from binary on MaxOSX 10.2 are available at this page

Also install the StartUp Item script (available on the same web page) so that postgresql is loaded at system startup.

To include /usr/local/bin in the command path, enter this command
        echo 'setenv PATH /usr/local/bin:$PATH' >> ~/.tcshrc
        

2.5.5. Installing pypgsql

Download the source code from http://sourceforge.net/project/showfiles.php?group_id=16528

You may need to se a text editor to edit the file setup.py in the untarred folder pypgsql so that the lines starting include_dirs and library_dirs look like this

        include_dirs  = [ "/usr/local/pgsql/include" ]
        library_dirs  = [ "/usr/local/pgsql/lib" ]
        

In the terminal, go to the pypgsql directory and type
        python setup.py build
        

If you have build errors, download the setup.py file from the Gnumed Homepage, move it to the pypgsql directory, and repeat the command.

Wait for the build to finish and then type
        sudo python setup.py install
        
(Enter your root password when prompted)

To test the install, type
        python test/PgSQLTestCases.py
        

2.5.6. Download gnumed cvs

Open a new terminal window, and type

cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/gnumed login
		

Just press 'return' when asked for a password. Then type
cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/gnumed checkout gnumed
		

All the gnumed files will be downloaded to your hard drive.

2.5.7. Configuring postgres for Gnumed

See (SQL Setup).