Re: problems with 5.1.1 binary distribution on RHEL4

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 29 Jul 2009 08:56:29 -0600 (MDT)

On Wed, 29 Jul 2009, Gary Klaassen wrote:

> Hi, I've installed ncl_ncarg-5.1.1.Linux_x86_64_gcc412.tar.gz on an RHEL4
> 64-bit system with that version of gcc. It was untarred into /usr/local/ncarg
> and the necessary environment variables are set.
>
> The first thing I noticed is that there is no /usr/local/ncarg/man,
> i.e. all the usual man pages are missing.

I don't normally include the man pages with the distribution because
they are so out-of-date. I can tar them up for you if you need them.
Just email me offline.

Just FYI: we don't have a man page for "ncl".

> The following works as expected:
> ng4ex gsun01n; ncl gsun01n.ncl
>
> However, ncargex cpex08 generates:
>
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08
> cpexcc.f cpex08.f -L/usr/local/ncarg/lib -lncarg -lncarg_gks -lncarg_c
> -lX11 -lXext -lpng -lz
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status

The compiler may need help finding the X11 libraries. Look for a file
like:

     /usr/X11R6/lib/libX11.a

If you see it, then you need to include "-L/usr/X11R6/lib" on the
compile line (the path may be different; I'm just using
"/usr/X11F6/lib" as an example):

    ncargex cpex08 -n
    ncargf77 -L/usr/X11R6/lib -o cpex08.f cpexcc.f

If this works, *and* if you need to use ncargf77, then you can edit
$NCARG_ROOT/bin/ncargf77 and add -L/usr/X11R6/lib to the "libpath"
line:

set libpath = "-L/usr/X11R6/lib -L$libdir $syslibdir"

--Mary

> The compile and link failed.
>
> I have both xorg-x11 and xorg-x11-devel installed.
>
> Any help would be appreciated. thanks, Gary Klaassen, York University
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Jul 29 2009 - 08:56:29 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 29 2009 - 09:08:18 MDT