gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] gnumed on Mac Panther


From: Tony Lembke
Subject: [Gnumed-devel] gnumed on Mac Panther
Date: Sat, 21 Feb 2004 13:06:00 +1100

James et al,
I have reinstalled gnumed on a new computer running Panther.
It seems to work Ok, although I have not yest included the instructions for adding the SQL tables.
(list : What is the password for test-doc?)

There are a few changes from the documented installation on Mac 10.2 - generally it is easier. Apple in their wisdom appear to have changed the default shell from tsch to bash, and /usr/local/bin is not in the default Path. Python is included with Panther in the 'right' version that is compatible with wxPython, and there is a neat package manager for MacPython that makes it easy to add egenix and pyPgSQL.

Here are the instructions

Installing GNUMed on Mac OSX 10.3 (Panther)
There are a number of changes in MacOSX between Jaguar and Panther that necessitate some changes to the installation procedure.

1. Mac Developer Tools (Xtools)
Install the Developer tools which are on the disc called XTools.
The default Easy Install is satisfactory.

2. wxPython
The correct version of Python is included with Panther. However, you need to install wxPython, which is a package that enables applications written in Python to use the native GUI (In MacOSX case, that is called aqua). Download and install the latest version of the wxPython installer for Panther from http://wxpython.sourceforge.net/download.php#binaries To test your installation, run the application 'RunDemo' in Applications>wxPythonOSX-2.4.2.4-panther

3. Install postgresql, which is the database used by gnumed.
A binary package and instructions for the Panther version are available from
     http://www.entropy.ch/software/MacOSx/postgresql/
Take note of the command required to start postgres -
/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l postgres.log start If you want postgres to start at system startup, download the startup application from the same page.

5. Setting the Command Path
'/usr/local/bin' needs to be included in the command PATH, if not already included.
In a terminal window, type
        echo $PATH
the result will be a list of directories seperated by colons, like this
        /bin:/sbin:/usr/bin:/usr/local/bin
if '/usr/local/bin' is one of the directories, you can skip this section.
otherwise type
        echo "export PATH=$PATH:/usr/local/bin" >> ~/.bash_profile

4. Python add-ons (new) (egenix and pyPgSQL)
The egenix extensions (Date/Time) and pypgsql (which allows python to interface with postgresql) can be downloaded using the mac python add-ons pack which you should download from here-
       http://homepages.cwi.nl/~jack/macpython/download.html
Install the package, then open the Package Manager (Applications>MacPython-2.3>Package Manager)
In the File menu, select Open URL and type
http://undefined.org/python/pimp/darwin-7.2.0-Power_Macintosh.plist
Select the file
egenix-mxbase and click install
pyPgSQL and click install

5. Download gnumed
The gnumed files are downloaded from cvs
Open a new terminal window and type
    export CVS_RSH=ssh
    export CVSROOT=:ext:address@hidden:/cvsroot/gnumed
    cd <some directory where you want the gnumed cvs checkout to go>
    cvs -z3 co gnumed OR cvs -z3 checkout gnumed (z3 is for compression)
The gnumed cvs files will all be downlaoded to your computer.
Repeat these commands to update these files at a later date.

Test setup so far -
pythonw ~/gnumed/gnumed/client/wxpython/gnumed.py

If all is well, the gnumed log in window will be displayed.
You will not be able to log in as the gnumed postgres tables are not yet set up.





reply via email to

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