|
From: Alan W. I. <ir...@be...> - 2002-06-04 20:13:53
|
We have a home-brew way to find where the python directories are which is
suitable for the systems we are familiar with. But when that configuration
system breaks down (as I did recently for RedHat 7.2 and from your report it
sounds like the same thing is happening for MacOS X) we can override the
system in the following way:
PY_VERSION=python -c 'import sys ; print sys.version[0:3]'
export
PYTHON_INC_DIR=/usr/include/python${PY_VERSION}/
echo PYTHON_INC_DIR=${PYTHON_INC_DIR}
export PYTHON_MOD_DIR=/usr/lib/python${PY_VERSION}/
export PYTHON_CFG_DIR=${PYTHON_MOD_DIR}/config
export PYTHON_NUM_DIR=${PYTHON_INC_DIR}/Numeric/
export PYTHON_MACH_DIR=${PYTHON_MOD_DIR}/site-packages
export PYTHON_DIR=${PYTHON_MACH_DIR}
./configure ....
You will have to adjust these lines for the locations of the python files in
your system. Also, these lines are specific to the bash shell environment so
you may have to adjust the syntax if you are using something else on MacOS X.
Alan
email: ir...@be...
phone: 250-727-2902 FAX: 250-721-7715
snail-mail:
Dr. Alan W. Irwin
Department of Physics and Astronomy,
University of Victoria, P.O. Box 3055,
Victoria, British Columbia, Canada, V8W 3P6
__________________________
Linux-powered astrophysics
__________________________
On Tue, 4 Jun 2002, D tang wrote:
> Hello,
>
> When I do the './configure' I get this error
>
> checking for Python.h... no
> warning: can't find Python.h, setting enable_python to
> no
>
> how can I solve this problem?
>
> I am using the MaC OS X/darwin operating system!
>
> Thanks
>
> Dustin
>
>
>
> ______________________________________________________________________
> Movies, Music, Sports, Games! http://entertainment.yahoo.ca
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Plplot-devel mailing list
> Plp...@li...
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>
|