[ncl-install] problems with 5.1.1 binary distribution on RHEL4
Gary Klaassen
gklaass at yorku.ca
Wed Jul 29 10:22:39 MDT 2009
On Wed, 29 Jul 2009, Mary Haley wrote:
>
> 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".
Hi Mary, People tend to expect man pages and out-of-date is better
than nothing! Thanks for the offer, I will email you, but if the man pages
exceed a few MB, they'll be stripped from email.
>> 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"
I already tried putting that (-L/usr/X11R6/lib64) in the libextra line and
it didn't work. Fortunately, putting it where you suggest does work, so
many thanks. Gary
More information about the ncl-install
mailing list