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

Mary Haley haley at ucar.edu
Thu Feb 27 10:26:56 MST 2014


Hi Tony,

Just an FYI: if you are only interested in NCL and not in NCAR Graphics, then it is not important that you get "ncargex cpex08" to work. The fact that "ng4ex gsun01n.ncl" works means that NCL is working fine.

If you still want to get NCAR Graphics to work, then my guess is the same as yours : the cairo version is not matching up.  NCL V6.1.2 was built with Cairo V1.10.2, I believe. We had another user  that ran into the same problem, and they were using cairo 1.2.4.

I believe you should be able to get a newer cairo via yum or apt-get:

   apt-get install libcairo-devel
   yum install libcairo-devel


--Mary

On Feb 27, 2014, at 9:59 AM, "Mannucci, Anthony J (335G)" <anthony.j.mannucci at jpl.nasa.gov> wrote:

> 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
>  4800 Oak Grove Drive,                   http://scienceandtechnology.jpl.nasa.gov/people/a_mannucci/
>  Pasadena, CA 91109
> 
> _______________________________________________
> 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