[Top][All Lists]

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

[Gnumed-devel] Re: psycopg2 2.0.7 on Mac OS

From: Karsten Hilbert
Subject: [Gnumed-devel] Re: psycopg2 2.0.7 on Mac OS
Date: Wed, 20 Aug 2008 13:40:23 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Aug 19, 2008 at 11:40:34PM -0700, James Busser wrote:

>>> The psycopg2 modules needs to be upgraded to 0.2.7.
>> 2.0.7, rather
> As there are not yet any installers for the above newest (April 2008)  
> version for Mac OS at,

It may be useful to ask them or here

for an upgrade.

> I downloaded the tarball from initdb

>  The readme and install list no other  
> dependencies for example anything more than Python 2.4.4... I am not  
> sure if any other steps were needed maybe hinted from

> but got the output below.
Let's see.

> MacBook:/Volumes/MacBookHD_1/Users/djb/Desktop/psycopg2-2.0.7 root#  
> python install
> running install
> running build
> running build_py
> running build_ext
> Warning: /bin/sh: line 1: pg_config: command not found
This is a PostgreSQL helper command asking PostgreSQL where
it stores its data etc.

On my Debian box it is part of the libpq package which is
part the PG client. In particular this lives in libpq-dev,
the development version of libpq, including PG headers.

> building 'psycopg2._psycopg' extension
> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
> fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - 
> fno-common -dynamic -DNDEBUG -g -O3 -DPY_MAJOR_VERSION=2 - 
> Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I. -c 
> psycopg/psycopgmodule.c -o build/temp.macosx-10.3-fat-2.4/ 
> psycopg/psycopgmodule.o
> In file included from psycopg/psycopgmodule.c:23In file included from  
> psycopg/psycopgmodule.c:23:
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Python.h:18:20: error: limits.h: No such file or directory

Here it looks for Python header files. So will likely need
to install Python devel packages which include the Python headers.

We may later have to point the psycopg2 to the Python 2.5
headers but let's first try with 2.4.

If the Python do seem to be installed we may need to install
kernel headers for the kernel you are running.

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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