GNUMed requires the following packages. Each link points to a .EXE file. Download them and run each in turn.
Table 2-3. Requirements
Package | URL | Version |
---|---|---|
Python Scripting Language | python.org | 2.1 |
wxWindows windowing library | wxWindows for Python bindings | 2.3.2 |
mx extension libraries | mx | 2.0.3 |
PyGresQL -- Python libraries for SQL | PyGresQL | 2.2 |
CYGWIN UNIX emulator | cygwin.com | 2.1 |
IPC for Cygwin | CygIPC (this is not an .EXE file. Save it to C:\CYGWIN) | 1.11 |
Download these packages. For cygwin, make sure you select the package PostgreSQL in the Databases category.
Double-click on the Cygwin icon on your desktop. The UNIX command prompt appears. Take a deep breath, and type:
cd / tar xvjf /cygipc-1.11-1.bz2 /usr/local/bin/ipc-daemon & mkdir /usr/share/postgresql/data /usr/bin/initdb -D / /usr/bin/postmaster -D /usr/share/postgresql/data & |
Every time to want to run PostgreSQL again, open up Cygwin as before and type:
/usr/local/bin/ipc-daemon & /usr/bin/postmaster -D /usr/share/postgresql/data & |
Once PostgreSQL is set up, go to the section on setting up the database (SQL Setup.)
On Windows NT, 2000 or XP it is possible to run PostgreSQL as a background process (similar to a UNIX daemon).
Go to Control Panel: "Users", and create a new user for your system, called "postgres". Give the user privileges to run as a service.
At the Cygwin prompt, type:
ipc-daemon --install-as-service |
cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user postgres --shutdown |
mkdir /usr/share/postgresql/data chown postgres /usr/share/postgresql/data |
Reboot the computer. Now log in as the "postgres" user, load Cygwin again and type:
initdb -D /usr/share/postgresql/data |
Once PostgreSQL is set up, go to the section on setting up the database (SQL Setup.)
Once you have done this, you can run GNUMed from the Python interpreter. Click on the Python icon and type:
>>> import sys >>> sys.path.append ('path-to-gnumed-files') >>> import gnumed >>> gnumed.main () |