[ncl-install] ncargex cpex08 fails to compile and link
Santiago Gaja Ferrer
sgaja at cicese.mx
Fri Aug 26 20:05:28 MDT 2011
Hi,
1) I just installed the precomplied version of NCL:
ncl_ncarg-5.1.0.Linux_x86_64_gcc411.tar.gz
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)?
Regards
Santiago Gaja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20110826/ac921947/attachment.html
More information about the ncl-install
mailing list