Re: Ngl import problem on RHEL 6

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 10 2013 - 17:23:44 MDT

Hi Marty,

It looks like you are doing everything correctly, but for whatever reason, your system doesn't know to look in /usr/lib/gcc/x86_64-redhat-linux/4.4.4 for the library when you try to load PyNGL.
Do you have multiple gcc compilers installed on your system? If so, it may be that you are compiling with one version, but your system is looking for the shared libraries associated with a different version.

Can you type the following and email me the output:

gcc --version
gfortran --version
ld /usr/lib64/python2.6/site-packages/
locate libgfortran


On Jul 9, 2013, at 10:52 AM, Marty J. Sullivan <> wrote:

> I am trying to compile PyNGL on RHEL 6 x86_64. Here are the vars I set:
> export HAS_CAIRO=1
> export F2CLIBS=gfortran
> export F2CLIBS_PREFIX=/usr/lib/gcc/x86_64-redhat-linux/4.4.4
> export NCARG_ROOT=/usr
> I had to edit to look in /usr/lib64/ncarg for the ncl libs as it was looking for them in /usr/lib/ncarg. I have double checked and the F2CLIBS_PREFIX I set is definitely where is.
> I run install and it compiles fine. However, when I import Ngl in python I get the following error:
> import Ngl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "", line 39, in <module>
> import fplib
> ImportError: /usr/lib64/python2.6/site-packages/ undefined symbol: _gfortran_concat_string
> From what I've read, it seems this error comes about when is not included properly when compiling, but it seems like I have given the correct path. Can anyone provide some insight here?
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Jul 10 17:23:45 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 09:37:03 MST