[Numpy-discussion] problem compiling v.1.0.3 on a Mac

Robert Kern robert.kern at gmail.com
Sat Jun 30 16:42:50 EDT 2007


John Cartwright wrote:
> Hello All,
> 
> I'm having trouble compile  on a Mac 10.4.10.  It seems as if it's  
> not finding /usr/include:
> 
> ...
>                   from /Library/Frameworks/Python.framework/Versions/ 
> 2.4/include/python2.4/Python.h:81,
>                   from _configtest.c:2:
> /usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
> ...
> 
> I tried setting the "CFLAG=-I/usr/include", but w/o success.  Can  
> anyone help me?

It should build out-of-box. Is this the standard Python distribution from
www.python.org? Check your environment variables. You should not have CFLAGS or
LDFLAGS; these will overwrite the flags that are necessary for building Python
extension modules.

If that doesn't work, please give us the complete output of

  $ python setup.py -v build

Thanks.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list