[ncl-install] ctrans -d xwd produces bad output

Steven G Decker decker at envsci.rutgers.edu
Fri Aug 31 13:46:09 MDT 2012


Hello there,

After a computer upgrade, I installed
ncl_ncarg-6.1.0-beta.Linux_RedHat_x86_64_nodap_gcc444.tar.gz
which seems to be the closest package to my system (My CentOS system has 
gcc/gfortran 4.4.6)

I immediately encountered one problem:
  > ncargf90 -o plthovagf plthovagf.f90
gfortran -fPIC -fno-second-underscore -fno-range-check -O -o plthovagf 
plthovagf.f90 -L/usr/local/ncarg/lib -L/usr/X11R6/lib64 -lncarg 
-lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig 
-lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpthread
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status

The file libexpat.so.1.5.2 exists in /lib64 on my system.  Trying to set 
LD_LIBRARY_PATH to /lib64 had no effect, nor did manually sticking 
-L/lib64 into the compile line.  Instead, I worked around the problem with:
 > gfortran -fPIC -fno-second-underscore -fno-range-check -O -o 
plthovagf plthovagf.f90 -L/usr/local/ncarg/lib -L/usr/X11R6/lib64 
-lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender 
-lfontconfig -lpixman-1 -lfreetype

I now have an executable that works.  (Running idt or ctrans -d X11 on 
the output gives me what I expect.)

However, ctrans -d xwd on the output produces incorrect results.  I've 
attached a screenshot showing the difference between ctrans -d X11 and 
ctrans -d xwd.

Can you tell me why my xwd file is not being generated correctly?

Thanks,
Steve




-- 
Steve Decker, Instructor
Department of Environmental Sciences    Phone: (732) 932-9800 x 6203
Rutgers University                               Fax: (732) 932-8644
14 College Farm Rd                  Email: decker at envsci.rutgers.edu
New Brunswick, NJ  08901-8551
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctransscreen.png
Type: image/png
Size: 59980 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20120831/22b683c6/attachment-0001.png 


More information about the ncl-install mailing list