Re: trouble installing pyngl in home directory of hopper

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 06 2012 - 15:59:51 MST

Hi Charlie,

It looks like maybe the F2CLIBS_PREFIX is not set correctly. It should be set to the location of the "libgfortran.so" file, and not the location of the "gfortran" binary.

To help locate the file, try typing:

   locate libgfortran.so

 It might be something like:

/opt/pgi/11.9.0/linux86-64/11.9/lib

You would then set:

   export F2CLIBS_PREFIX=/opt/pgi/11.9.0/linux86-64/11.9/bin

Make sure you remove the "build" directory that was created from the last build,
and then type "python setup.py install" again.

(Note that I removed the double quotes.)

If this doesn't work, then can you send the compilation output from the python setup.py install command?

Thanks,

--Mary

On Mar 6, 2012, at 12:40 PM, Charlie Koven wrote:

> Hi,
>
> I am trying to install PyNGL from source into my home directory on hopper at nersc, in which I set up a virtualenv environment so that I can add my own libraries.
> I tried to use the following environment variables:
>
> export F2CLIBS="pgf90"
> export F2CLIBS_PREFIX="/opt/pgi/11.9.0/linux86-64/11.9/bin"
> export FC="pgf90"
> export F90="pgf90"
> export CXX="pgf90"
>
>
> when I try to load the library I get this error:
>
>
> In [1]: import Ngl
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
> /global/u2/c/cdkoven/python_stuff/PyNGL-1.4.0/<ipython-input-1-ec4bb7966c2f> in <module>()
> ----> 1 import Ngl
>
> /global/u2/c/cdkoven/python_stuff/PyNGL-1.4.0/Ngl.py in <module>()
> 37
> 38 # PyNGL analysis functions
>
> ---> 39 import fplib
> 40
> 41 import sys
>
> ImportError: /global/homes/c/cdkoven/ENV/lib/python2.7/site-packages/PyNGL/fplib.so: undefined symbol: _gfortran_concat_string
>
>
> Any ideas for a fix?
> Thanks,
> Charlie Koven
>
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Mar 6 15:59:55 2012

This archive was generated by hypermail 2.1.8 : Wed Apr 11 2012 - 14:41:42 MDT