[SciPy-user] fortran compiler not found Mac Leopard 10.5

Jeremy Conlin jeremit0@gmail....
Tue Nov 13 08:20:46 CST 2007

On Nov 12, 2007 11:59 PM, Brian Granger <ellisonbg.net@gmail.com> wrote:
> Great, now you are ready for the other problem on Leopard:
> sudo does not preserve the PYTHONPATH environment variable.
> Thus anytime you do::
> sudo python setup.py install
> to install something else, your version of numpy won't be used!  This
> has been reported to apple and the problem can be fixed by adding
> PYTHONPATH to the appropriate section in /etc/sudoers.
> Another option (see the recent thread on pythonmax-sig) is to create a
> .pth file that dynamically reorders the sys.path.  This approach is
> nice as it doesn't require setting PYTHONPATH.
> You will run into this when installing matplotlib and pytables...if
> you go that way.

I am heading that way, at least I am installing matplotlib.  Now I run
into other issues not yet related to the PYTHONPATH problem.  when
issuing the command

$ python setup.py build

Everything seems to proceed normally until I get the following error:
src/_image.cpp:5:17: src/_image.cpp:5:17: error: png.h: No such file
or directory
error: png.h: No such file or directory
src/_image.cpp: In member function 'Py::Object Image::write_png(const
src/_image.cpp:646: error: 'png_structp' was not declared in this scope
src/_image.cpp:646: error: expected `;' before 'png_ptr'

After that there are many compile errors.  At the beginning of the
building there was a message

libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of
                        * '/usr/local/include', '/usr/include', '.'

So it seems like it doesn't know where to find the header files for
libpng.  How can I tell setup where to go looking for the header
files?  (I also got a similar message for freetype2.)


More information about the SciPy-user mailing list