gnumed-devel
[Top][All Lists]
Advanced

[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 gnumed.py 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


----------
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


----------------------------------------------
Instaling Python and wxWindows
----------------------------------------------

Download the latest versions of MachoPython and wxPythonOSX from http://sourceforge.net/project/showfiles.php?group_id=10718

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 http://www.egenix.com/files/python/egenix-mx-base-2.0.3.tar.gz (The latest version can be found at http://www.lemburg.com/files/python/eGenix-mx-Extensions.html)

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

----------------------------
Installing postgresql
-----------------------------

Good instructions for installing Postgresql from binary on MaxOSX 10.2 are available at
http://www.entropy.ch/software/MacOSx/postgresql/

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 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
http://www.gnumed.org/directory/documents/144/setup.py
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


--------------------------------
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

type
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 gnumed.py
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/gmLog.py::__init__:340): SECURITY: initial log level is [ERROR]
Traceback (most recent call last):
  File "gnumed.py", line 159, in ?
    gmLog.gmDefLog.SetAllLogLevels(gmLog.lInfo)
AttributeError: cLogger instance has no attribute 'SetAllLogLevels'
[bluey:gnumed/client/wxpython] tlembke%















reply via email to

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