Re: Ngl import problem on RHEL 6

From: Marty J. Sullivan <mjs472_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 10 2013 - 18:42:24 MDT

I think I've solved the problem. It seems that Ngl.pth was being put inside /usr/lib/python2.6/site-packages. I moved the file to /usr/lib64/python2.6/site-packages and it now seems to be importing correctly. I assume all is good now but I have asked a user to test out the install. I will report back if there are further issues.

From: Mary Haley []
Sent: Wednesday, July 10, 2013 7:23 PM
To: Marty J. Sullivan
Subject: Re: Ngl import problem on RHEL 6

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 18:42:43 2013

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