[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] gnumed on MacOSX

From: Tony Lembke
Subject: [Gnumed-devel] gnumed on MacOSX
Date: Sat, 14 Sep 2002 15:10:35 +1000

Gerhard of pypgsql was very helpful and this module now builds and installs on MacOSX - so all the bits are together.

(There is still an error getting to run and am working on that. The error is at the very bottom of this message if anyone has any suggestions)

Here are the instructions that Gerardo may like to add to the user-manual


GnuMED on MacOSX 10.2


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

Instaling Python and wxWindows

Download the latest versions of MachoPython and wxPythonOSX from

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

Install mx extensions

Download the mx extensions from (The latest version can be found at

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
su root
python install

Installing postgresql

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

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

Installing pypgsql

Download the source code from

You may need to se a text editor to edit the file 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 build

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

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

To test the install, type
python test/

Download gnumed cvs
Open a new terminal window, and type

cvs -z3 -d:pserver:address@hidden:/cvsroot/gnumed login

Just press 'return' when asked for a password
the type

cvs -z3 -d:pserver:address@hidden:/cvsroot/gnumed checkout gnumed

All the gnumed files will be downloaded to your hard drive

Configuring postgres for Gnumed

From your home directory, go to the directory gnumed/gnumed/server/sql
cd ~/gnumed/gnumed/server/sql

su postgres
Enter your postgres password
createdb gnumed

Instructions on initialising the gnumed databases will follow - when they are ready.


[bluey:gnumed/client/wxpython] tlembke% python
Environment variable GNUMED_DIR contains "".
This is not a valid path, however.
Trying to fall back to system defaults.
Standard path "/usr/share/gnumed/" does not exist.
Desperately trying to fall back to last resort measures.
This may be an indicator we are running Windows or something.
2002-09-14 14:59:49 ------------------------------------------------------------ 2002-09-14 14:59:49 [PANIC] (/Users/tlembke/gnumed/gnumed/client/wxpython/ SECURITY: initial log level is [ERROR]
Traceback (most recent call last):
  File "", line 159, in ?
AttributeError: cLogger instance has no attribute 'SetAllLogLevels'
[bluey:gnumed/client/wxpython] tlembke%

reply via email to

[Prev in Thread] Current Thread [Next in Thread]