Re: could not build NCL

From: Daniel Packman <pack_at_nyahnyahspammersnyahnyah>
Date: Thu Feb 06 2014 - 05:51:21 MST

On Feb 6, 2014, at 12:47 AM, sangeeta maharjan <sangeetamaharjan@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.

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Feb 6 05:51:29 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:38 MST