Re: pyngl-talk Digest, Vol 86, Issue 4

From: Andre R. Erler <aerler_at_nyahnyahspammersnyahnyah>
Date: Sat Jan 21 2012 - 12:11:26 MST

I have a very similar problem as Saulo, only with the Intel compiler: some of
the intel-specific f2c-libs are not correctly linked.
I set the environment variables like this:

export F2CLIBS='m ifcore irc ifport'
export F2CLIBS_PREFIX=/opt/intel/composerxe-2011.4.191/compiler/lib/intel64/

But I'm actually not quite sure if this is correct. The missing symbols are
defined in the libs defined in F2CLIBS and they are found in F2CLIBS_PREFIX.
I described this problem in more length in this post:
http://kubuntuforums.net/forums/index.php?topic=3120052.0
I have the same problem with PyNIO and a couple of non-NCAR python packages
that contain Fortran libs.
 - Andre

On January 21, 2012 02:00:35 PM pyngl-talk-request@ucar.edu wrote:
> Send pyngl-talk mailing list submissions to
> pyngl-talk@ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
> or, via email, send a message with subject or body 'help' to
> pyngl-talk-request@ucar.edu
>
> You can reach the person managing the list at
> pyngl-talk-owner@ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pyngl-talk digest..."
>
>
> Today's Topics:
>
> 1. Re: can not import Ngl (Mary Haley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 21 Jan 2012 08:54:22 -0700
> From: Mary Haley <haley@ucar.edu>
> Subject: Re: can not import Ngl
> To: Saulo Soares <saulo@hawaii.edu>
> Cc: pyngl-talk@ucar.edu
> Message-ID: <C76CD229-8425-4F43-A56B-E35DA9ACBF3D@ucar.edu>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi Saulo,
>
> It looks like the gfortran library didn't get pulled in when it did the
> build.
>
> Did you set the F2CLIBS (and possibly the F2CLIBS_PREFIX) environment
> variable?
>
> setenv F2CLIBS gfortran
>
> or
>
> export F2CLIBS=gfortran
>
> Also, if this is in a non-standard location, you may need F2CLIBS_PREFIX to
> point to the location of libgfortran.so.
>
> For more information, please see:
>
> http://www.pyngl.ucar.edu/Download/build_pyngl_from_src.shtml#SetPyNGLEnvVa
> rs
>
> --Mary
>
> On Jan 19, 2012, at 1:17 PM, Saulo Soares wrote:
> > Hi,
> >
> > I did a source install on my x86_64 GNU/Linux Ubuntu 10.04.
> > I use the Enthought Python Distribution: Python 2.7.2 |EPD 7.1-2
> > (64-bit)|, installed on my home directory. I compiled using my sys
> > gfortran and gcc 4.4.3.
> >
> > PyNIO worked fine, but PyNGL although seemed to install correct does not
> > import. $ pynglex ngl01p
> >
> > Error: I am unable to import the NumPy version of Ngl via
> >
> > 'import Ngl'.
> >
> > In the python:
> > >>> import Ngl
> >
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File
> > "/home/saulo/epd-7.1-2-rh5-x86_64/lib/python2.7/site-packages/PyNGL/Ng
> > l.py", line 39, in <module>
> >
> > import fplib
> >
> > ImportError:
> > /home/saulo/epd-7.1-2-rh5-x86_64/lib/python2.7/site-packages/PyNGL/fplib
> > .so: undefined symbol: _gfortran_concat_string
> >
> > Any help appreciated,
> > Thanks,
> > Saulo
> > _______________________________________________
> > pyngl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
> ------------------------------
>
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
>
> End of pyngl-talk Digest, Vol 86, Issue 4
> *****************************************
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Sat Jan 21 12:11:00 2012

This archive was generated by hypermail 2.1.8 : Mon Feb 06 2012 - 14:54:47 MST