ncargex cpex08 fails to compile and link

From: Santiago Gaja Ferrer <sgaja_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 26 2011 - 20:05:28 MDT


1) I just installed the precomplied version of NCL:
2) I set the paths in my .bashrc
3) "ng4ex gsun01n" works well
4) "ncl gsun01.ncl" works well
5)" ncargex cpex08 -clean" send this error:

NCAR Graphics Fortran Example <cpex08>

  Copying cpex08.f

  Copying cpexcc.f

Compiling and linking...
gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
-L/home/santiago/NCARG/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c
-lX11 -lXext -lpng -lz
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lXext
/usr/bin/ld: cannot find -lpng
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status

The compile and link failed.

I noticed that I donīt have the /usr/X11R6/lib64 directory....
my libraries: libX11, libXext, libpng and libz are in other directory
(/usr/lib/x86_64-linux-gnu), where can I change the directory path
(-L/usr/X11R6/lib64) to my lib directory (/usr/lib/x86_64-linux-gnu)?


Santiago Gaja

ncl-install mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Aug 26 20:05:33 2011

This archive was generated by hypermail 2.1.8 : Tue Aug 30 2011 - 13:29:52 MDT