[ncl-install] Problems installing ncar graphics, follow up

Mannucci, Anthony J (335G) anthony.j.mannucci at jpl.nasa.gov
Thu Feb 27 09:59:33 MST 2014


I am trying to install ncar graphics on a Linux RedHat enterprise 5 system without root privileges. I downloaded the binary: ncl_ncarg-6.1.2.Linux_RHEL5.6_x86_64_nodap_gcc412.tar.gz .

After setting up the paths as recommended, the following test program works successfully:
ng4ex gsun01n –clean

However the other recommended test program fails:
ncargex cpex08 –clean

I looked online and found that including –lgfortran will resolve gfortran references. I have found two gfortran libraries on the system:
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.a
and
/usr/lib64/libgfortran.so.1

I explicitly link to both libraries in the ncargf77 script. That resolves the libgfortran errors.

The remaining errors are as follows:
Compiling and linking...
gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f -L/tec/mannucci/tiegcm/ncarg/lib -L/usr/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender /usr/lib64/libgfortran.so.1 /usr/lib64/libcairo.so.2 /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.a
/tec/mannucci/tiegcm/ncarg/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
cro.c:(.text+0x12c3): undefined reference to `cairo_clip_extents'
/tec/mannucci/tiegcm/ncarg/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
cro.c:(.text+0x13cc): undefined reference to `cairo_clip_extents'
/tec/mannucci/tiegcm/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':
cro.c:(.text+0x4192): undefined reference to `cairo_ps_surface_set_eps'
/tec/mannucci/tiegcm/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_Cellarray':
cro.c:(.text+0x4a0a): undefined reference to `cairo_pattern_get_rgba'

The compile and link failed.

This appears to be a cairo version problem. Cairo libraries are on the system, but no symbol such as cairo_clip_extents is found (using nm –D).

I have since successfully binary-installed an earlier version of ncl/ncarg (5.x) that is useable for now.

Additional information is as follows:
gaim{mannucci}243: uname -a
Linux gaim 2.6.18-371.1.2.el5 #1 SMP Mon Oct 7 16:34:35 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
gaim{mannucci}244: cat /etc/issue
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Kernel \r on an \m

Help is appreciated. Thanks.

-Tony

--
Tony Mannucci
Supervisor, Ionospheric and Atmospheric Remote Sensing Group
 Mail-Stop 138-308,                     Tel > (818) 354-1699
 Jet Propulsion Laboratory,              Fax > (818) 393-5115
 California Institute of Technology,     Email > Tony.Mannucci at jpl.nasa.gov<mailto:Tony.Mannucci at jpl.nasa.gov>
 4800 Oak Grove Drive,                   http://scienceandtechnology.jpl.nasa.gov/people/a_mannucci/
 Pasadena, CA 91109

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140227/37c38ae6/attachment.html 


More information about the ncl-install mailing list