gnumed-devel
[Top][All Lists]
Advanced

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

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


From: Jerzy Luszawski
Subject: Re: [Gnumed-devel] psycopg2 2.0.7 on Mac OS
Date: Wed, 20 Aug 2008 10:18:21 +0200

Dnia 19-08-2008, wto o godzinie 23:40 -0700, James Busser napisaƂ(a):

> line (as root) I tried
> 
>       python setup.py install
> 
> but got the output below. 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
>     http://webpy.org/install_macosx

Don't know about MacOS, but in Linux to compile anything you need
developers' packages, which are installed separately from applications,
and contain all necessary header files. So you may have python, but not
python-dev package. In linux there is also nice package build-essential
installing the most common libraries.

Jerzy

> =========================================
> 
> MacBook:/Volumes/MacBookHD_1/Users/djb/Desktop/psycopg2-2.0.7 root#  
> python setup.py install
> running install
> running build
> running build_py
> running build_ext
> Warning: /bin/sh: line 1: pg_config: command not found
> 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 - 
> DPY_MINOR_VERSION=4 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 - 
> DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 - 
> DPSYCOPG_VERSION="2.0.7 (dec dt ext pq3)" -DPSYCOPG_EXTENSIONS=1 - 
> DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/ 
> 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
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Python.h:21:2: error: #error "Something's broken.  UCHAR_MAX should  
> be defined in limits.h."
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Python.h:25:2: error: #error "Python's source code assumes C's  
> unsigned char is an 8-bit type."
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Python.h:32:19: error: stdio.h: No such file or directory
> /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ 
> Python.h:34:5: error: #error "Python.h requires that stdio.h define  
> NULL."






reply via email to

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