<div dir="ltr">Dear Sir or Madam, <div><br></div><div>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.</div><div><br></div><div><div><font color="#9900ff">export NCARG_ROOT=/usr/local/ncl-6.3.0</font></div><div><font color="#9900ff">export PATH=$NCARG_ROOT/bin/ncargf77:$PATH</font></div><div><font color="#9900ff"><br></font></div><div><font color="#9900ff">set syslibdir = "-L/usr/lib64"</font></div><div><font color="#9900ff">set xlib = "-lX11 -lXext"</font></div><div><font color="#9900ff">set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2"</font></div><div><font color="#9900ff">set fortran = "/usr/bin/gfortran"</font></div><div><font color="#9900ff">set loadflags = "-fPIC -fno-second-underscore -fno-range-check -fopenmp -O "</font></div><div><font color="#9900ff">set libdir = `ncargpath lib`</font></div><div><font color="#9900ff">set ro = "$libdir/ncarg/robj"</font></div><div><font color="#9900ff">set libpath = "$libdir $syslibdir"</font></div><div><font color="#9900ff"><br></font></div><div><font color="#9900ff"><br></font></div><div style=""><font color="#000000">And I changed set syslibdir = "<span style="font-size:13px">-L/usr/X11R6/lib64"</span> to set syslibdir = "-L/usr/lib64" in three files in the /usr/local/ncl-6.3.0/bin/. </font><br></div><div><font color="#000000">These files are : ncargf77, ncargcc, and ncargf90. </font></div><div><br></div><div><font color="#000000">Then I ran the code again: </font></div><div><font color="#000000"><br></font></div><div><div style="color:rgb(153,0,255)">[neginm@civ-1215x ~]$ ncargex cpex08 -clean</div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)">NCAR Graphics Fortran  Example <cpex08></div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)"> Copying cpex08.f</div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)"> Copying cpexcc.f</div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)">Compiling and linking...</div><div style="color:rgb(153,0,255)">/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</div><div style="color:rgb(153,0,255)">/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':</div><div style="color:rgb(153,0,255)">cro.c:(.text+0x3efd): undefined reference to `cairo_recording_surface_create'</div><div style="color:rgb(153,0,255)">/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function `cro_ClearWorkstation':</div><div style="color:rgb(153,0,255)">cro.c:(.text+0x4be5): undefined reference to `cairo_recording_surface_create'</div><div style="color:rgb(153,0,255)">collect2: ld returned 1 exit status</div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)">The compile and link failed.</div><div style=""><font color="#000000"><br></font></div><div style=""><font color="#000000">When I use the command :</font></div><div style=""><font color="#000000"><br></font></div><div style=""><font color="#000000"> [neginm@civ-1215x ~]$ </font><font color="#9900ff">grep X11  /usr/local/ncl-6.3.0/bin/ncar*</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargcc:set xlib   = "-lX11 -lXext"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargcc:   case "-noX11"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:# Default is to load in the X11 library. If the    #</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:# user specifies "-noX11" or "-NCGMonly on the    #</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:# of the X11 library                 #</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:set X11_option</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:   case "-noX11":</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:    set X11_option = "-noX11"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:    echo "  This example was set up to demonstrate the X11"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:# "-noX11" only works if going to an NCGM   #</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:if ("$X11_option" == "-noX11" && "$ws_type" != "1") then</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:   echo "Warning:  You can only use the '-noX11' option if you are"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:   echo "      sending your output to an NCGM file. The '-noX11'"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:   set xoption = $X11_option</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:# If the workstation type is "8" (X11)  #</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:  echo "    create an X11 window that you must click on with your"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargex:    ctrans -d X11 -geometry 1142x865+10+0 $graphic_file</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargf77:set xlib   = "-lX11 -lXext"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargf77:   case "-noX11"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargf90:set xlib   = "-lX11 -lXext"</font></div><div><font color="#000000">/usr/local/ncl-6.3.0/bin/ncargf90:   case "-noX11"</font></div><div><font color="#000000">Binary file /usr/local/ncl-6.3.0/bin/ncargworld matches</font></div><div><br></div><div><font color="#000000">Please let me know why NCAR still is not working?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thank you</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Negin</font></div><div style="color:rgb(153,0,255)"><br></div><div style="color:rgb(153,0,255)"><br></div></div></div></div>