Re: installing PyNGL from source

From: Matthew Fearon <Matthew.Fearon_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 04 2011 - 11:15:48 MST

Hi Mary: Thanks for your e-mail. 

In regard to trying the binaries: I tried the using the following-

But both gave me the following error on import into my python script:

import Ngl

ImportError: dlopen(/usr/local/lib/python2.6/site-packages/PyNGL/, 2): Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib
  Referenced from: /usr/local/lib/python2.6/site-packages/PyNGL/

I have gfortran installed (version 4.2.3), but libgfortran is libgfortran.2.0.0.dylib. I wasn't sure what version of gfortran I needed to get libgfortran.3.dylib. 

Before I mention my other issues in regard to building from source, maybe the above is an easier fix to start with? I am using Mac OS X 10.5 with Python 2.6.6. I have PyNIO binaries (PyNIO-1.4.0.macos-10.5-i386-py265-numpy141-nodap.tar) installed and working nicely. 

Any thoughts? thanks for your help,

----- Original Message -----
From: Mary Haley <>
Date: Friday, February 4, 2011 9:18 am
Subject: Re: [pyngl-talk] installing PyNGL from source
To: Matthew Fearon <>

> Hi Matth,
> First, what kind of problems did you have with the precompiled
> binaries?
> It looks like you are building PyNGL with cairo support
> requested (this gives you the capability to
> directly write PNG files). If you want cairo support, you will
> need to build the cairo libraries
> separately (cairo, fontconfig, pixman-1, freethpe, and expat).
> Some of these libraries may already be on your system, but it
> looks like the cairo library is not, or
> else it can't be found.
> If you have the cairo library already, then you can try setting
> the CAIRO_PREFIX environment
> variable to point to the root directory of where the ciaro lib
> and include files are installed.
> There's information about this and other XXXX_PREFIX variables
> you can set in the PyNGL file.
> Please see the section on building and installing optional
> software for PyNGL. It includes instructions on
> cairo and other libraries you might need:
> If you don't want to build with CAIRO support, then make sure
> you haven't setenv HAS_CAIRO to 1
> (cairo support is off by default).
> Let me know if you have further questions or problems.
> --Mary
> On Feb 3, 2011, at 12:56 PM, Matthew Fearon wrote:
> > Hello,
> >
> >
> > I am trying to install PyNGL from source after unsuccessful
> attempts with precompiled binaries. I am using Mac OS X 10.5. I
> believe I have all the additional and optional libraries install
> and environmental variables set. Seeking assistance with
> following gcc error: please see the screen prints results from
> running 'python install" attached in a text file.
> >
> >
> > thanks very much,
> > Matt
> > <install_test.txt>_______________________________________________
> > pyngl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> >
Received on Fri Feb 4 11:15:06 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 11 2011 - 16:11:13 MST