[ncl-install] cannot find -lexpat
Mary Haley
haley at ucar.edu
Wed Dec 4 11:51:10 MST 2013
Please see our release notes for V6.1.0, which indicates some changes to compiling NCAR Graphics codes.
http://www.ncl.ucar.edu/prev_releases.shtml#CompilationChanges6.1.0
If you are just using "ncl", then you don't need to worry about installing these libraries, unless the "ncl" executable starts complaining about dependencies (it shouldn't do this).
--Mary
On Nov 22, 2013, at 3:31 PM, Mr. Darwin G. Adams (Contractor) <adamsdg.ctr at afrl.hpc.mil> wrote:
> I have tried to build NCL 6.2.1 on our Linux cluster and get a failure
> during compilation when I test it that seems to be the location of the
> expat library.
>
> The library is installed in /lib64
>
> predator:/app/ncar/modulefiles/ ncargex cpex08
>
> 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/app/ncar/6.2.1/intel/lib -L/usr/lib64 -L/hafs_x86_64
> -L/hafs_x86_64/lib64 -L/hafs_x86_64/devel/lib64 -lncarg -lncarg_gks
> -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype
> -lexpat -lpng -lz -lpthread -lbz2 -lXrender
> /usr/bin/ld: cannot find -lexpat
> collect2: ld returned 1 exit status
>
> The compile and link failed.
>
>
>
> I also tried running the 6.2.1 binary, but get the same failure during
> compilation.
>
> bash-4.1$ ncargex cpex08
>
> 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/app/ncar/6.2.1/gcc4.4/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 -lexpat
> collect2: ld returned 1 exit status
>
> The compile and link failed.
>
>
> The expat RMS is installed.
>
> predator:/app/ncar/modulefiles/ rpm -qil expat-2.0.1-11.el6_2.x86_64
> Name : expat Relocations: (not relocatable)
> Version : 2.0.1 Vendor: Red Hat, Inc.
> Release : 11.el6_2 Build Date: Fri Apr 27
> 11:24:27 2012
> Install Date: Mon Jun 24 13:04:33 2013 Build Host:
> x86-001.build.bos.redhat.com
> Group : System Environment/Libraries Source RPM:
> expat-2.0.1-11.el6_2.src.rpm
> Size : 198018 License: MIT
> Signature : RSA/8, Thu May 10 11:37:12 2012, Key ID 199e2f91fd431d51
> Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
> URL : http://www.libexpat.org/
> Summary : An XML parser library
> Description :
> This is expat, the C library for parsing XML, written by James Clark. Expat
> is a stream oriented XML parser. This means that you register handlers with
> the parser prior to starting the parse. These handlers are called when the
> parser discovers the associated structures in the document being parsed. A
> start tag is an example of the kind of structures for which you may
> register handlers.
> /lib64/libexpat.so.1
> /lib64/libexpat.so.1.5.2
> /usr/bin/xmlwf
>
>
> On an older version of NCAR 5.2.1, I don't see -lexpat" in the
> compilation.......
>
> DG
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list