[ncl-install] Problem in running NCAR

Negin Moghaddam negin.f.moghaddam at gmail.com
Mon Jul 20 00:38:54 MDT 2015


Dear Sir or Madam,

I still have problem with running NCAR; As you mentioned I went through the
steps and configure, make install all the packages including cairo. Then I
changed the path as follows in my .bashrc.

export NCARG_ROOT=/usr/local/ncl-6.3.0
export PATH=$NCARG_ROOT/bin/ncargf77:$PATH

set syslibdir = "-L/usr/lib64"
set xlib = "-lX11 -lXext"
set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
-lz -lpthread -lXrender -lbz2"
set fortran = "/usr/bin/gfortran"
set loadflags = "-fPIC -fno-second-underscore -fno-range-check -fopenmp -O "
set libdir = `ncargpath lib`
set ro = "$libdir/ncarg/robj"
set libpath = "$libdir $syslibdir"


And I changed set syslibdir = "-L/usr/X11R6/lib64" to set syslibdir
= "-L/usr/lib64" in three files in the /usr/local/ncl-6.3.0/bin/.
These files are : ncargf77, ncargcc, and ncargf90.

Then I ran the code again:

[neginm at civ-1215x ~]$ ncargex cpex08 -clean

NCAR Graphics Fortran  Example <cpex08>

  Copying cpex08.f

  Copying cpexcc.f

Compiling and linking...
/usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
-o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.3.0/lib -L/usr/lib64 -lncarg
-lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1
-lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function
`cro_OpenWorkstation':
cro.c:(.text+0x3efd): undefined reference to
`cairo_recording_surface_create'
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function
`cro_ClearWorkstation':
cro.c:(.text+0x4be5): undefined reference to
`cairo_recording_surface_create'
collect2: ld returned 1 exit status

The compile and link failed.

When I use the command :

 [neginm at civ-1215x ~]$ grep X11  /usr/local/ncl-6.3.0/bin/ncar*
/usr/local/ncl-6.3.0/bin/ncargcc:set xlib     = "-lX11 -lXext"
/usr/local/ncl-6.3.0/bin/ncargcc:    case "-noX11"
/usr/local/ncl-6.3.0/bin/ncargex:# Default is to load in the X11 library.
If the      #
/usr/local/ncl-6.3.0/bin/ncargex:# user specifies "-noX11" or "-NCGMonly on
the       #
/usr/local/ncl-6.3.0/bin/ncargex:# of the X11 library
          #
/usr/local/ncl-6.3.0/bin/ncargex:set X11_option
/usr/local/ncl-6.3.0/bin/ncargex:    case "-noX11":
/usr/local/ncl-6.3.0/bin/ncargex:      set X11_option = "-noX11"
/usr/local/ncl-6.3.0/bin/ncargex:      echo "  This example was set up to
demonstrate the X11"
/usr/local/ncl-6.3.0/bin/ncargex:# "-noX11" only works if going to an NCGM
   #
/usr/local/ncl-6.3.0/bin/ncargex:if ("$X11_option" == "-noX11" &&
"$ws_type" != "1") then
/usr/local/ncl-6.3.0/bin/ncargex:    echo "Warning:  You can only use the
'-noX11' option if you are"
/usr/local/ncl-6.3.0/bin/ncargex:    echo "          sending your output to
an NCGM file. The '-noX11'"
/usr/local/ncl-6.3.0/bin/ncargex:    set xoption = $X11_option
/usr/local/ncl-6.3.0/bin/ncargex:# If the workstation type is "8" (X11)  #
/usr/local/ncl-6.3.0/bin/ncargex:  echo "      create an X11 window that
you must click on with your"
/usr/local/ncl-6.3.0/bin/ncargex:      ctrans -d X11 -geometry
1142x865+10+0 $graphic_file
/usr/local/ncl-6.3.0/bin/ncargf77:set xlib     = "-lX11 -lXext"
/usr/local/ncl-6.3.0/bin/ncargf77:    case "-noX11"
/usr/local/ncl-6.3.0/bin/ncargf90:set xlib     = "-lX11 -lXext"
/usr/local/ncl-6.3.0/bin/ncargf90:    case "-noX11"
Binary file /usr/local/ncl-6.3.0/bin/ncargworld matches

Please let me know why NCAR still is not working?

Thank you

Negin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20150720/68e9656e/attachment.html 


More information about the ncl-install mailing list