[ncl-install] could not build NCL

Daniel Packman pack at ucar.edu
Thu Feb 6 05:51:21 MST 2014


On Feb 6, 2014, at 12:47 AM, sangeeta maharjan <sangeetamaharjan at gmail.com> wrote:

> Hi
> I tried for ncl_ncarg-6.1.2.Linux_RHEL6.2_x86_64_nodap_gcc446.tar.gz .
> The command     ng4ex gsun01n -clean worked but     ncargex cpex08
> -clean does not.
> 
> ncargex cpex08 -clean
> 
> 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/usr/local/NCL/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c
> -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
> -lz -lpthread -lbz2 -lXrender
===============
> /usr/bin/ld: cannot find -lXext
==================
> collect2: ld returned 1 exit status
> 
> The compile and link failed.
> 
> Need help to execute the command.

Do you have libXext installed?
rpm -q libXext   might return two lines like this:

libXext-1.3.1-2.el6.i686
libXext-1.3.1-2.el6.x86_64

If it only returns the first line, you don’t the
64 bit library installed.



More information about the ncl-install mailing list