<div dir="ltr">Hi Orion, <br><br>After fixing the library for NCAR, I ran the following scritp after putting the plot_points.ans, *.csh, *.dat, and *.f in the working folder. <br> <br><div>[neginm@civ-1215x Subsurface-Modelling-Monash]$ <span style="color:rgb(153,0,255)">ncargf77 -o plot_points.x plot_points.f</span><br>/usr/bin/gfortran
-fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o
plot_points.x plot_points.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<br>[neginm@civ-1215x Subsurface-Modelling-Monash]$ ls<br>plot_points.ans <br>plot_points.csh <br>plot_points.csh~ <br>plot_points.dat <br>plot_points.f <br><span style="color:rgb(0,255,0)">plot_points.x</span><br clear="all"><br></div>Then I tried: <br>[neginm@civ-1215x Subsurface-Modelling-Monash]$ chmod 755 plot_points.csh<br>[neginm@civ-1215x Subsurface-Modelling-Monash]$ ls<br><span style="color:rgb(0,255,0)">plot_points.csh </span> <br>plot_points.csh~ <br>plot_points.dat <br>plot_points.f <br><span style="color:rgb(0,255,0)">plot_points.x </span><br><br>However, when I run the code as : <br><div>[neginm@civ-1215x Subsurface-Modelling-Monash]$ <span style="color:rgb(153,0,255)">plot_points.csh</span><br>bash: plot_points.csh: command not found<br><br></div><div>Or with <br><br>[neginm@civ-1215x Subsurface-Modelling-Monash]$ <span style="color:rgb(153,0,255)">./plot_points.csh</span><br>./plot_points.csh: line 1: plot_points.x: command not found<br>ctrans: <span style="color:rgb(153,0,255)">Can't open metafile(plot_points.cgm) [ No such file or directory ]</span><br>GPL Ghostscript 8.70 (2009-07-31)<br>Copyright (C) 2009 Artifex Software, Inc. All rights reserved.<br>This software comes with NO WARRANTY: see the file PUBLIC for details.<br><br></div><div>The pdf and ps files came out with no content. <br></div><div><br><br></div><div>I
checked the web and it said, the outcome of running ncargf77 should
include *.cgm which I noticed in second line of your script is one of
the inputs.<br><br></div><div>I used the test example for NCAR as : <br>[neginm@civ-1215x ~]$ <span style="color:rgb(153,0,255)">ncargex cpex08 -clean</span><br><br>NCAR Graphics Fortran Example <cpex08><br><br> Copying cpex08.f<br><br> Copying cpexcc.f<br><br>Compiling and linking...<br>/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<br><br>Executing <cpex08>...<br> PLOT TITLE WAS EXAMPLE 8<br> INTEGER WORKSPACE USED 120<br> REAL WORKSPACE USED 400<br> AREA MAP SPACE USED 93250<br> PLOT TITLE WAS EXAMPLE 8<br> INTEGER WORKSPACE USED 120<br> REAL WORKSPACE USED 400<br> AREA MAP SPACE USED 866064<br><br>Metafile file is named <span style="color:rgb(255,0,255)">cpex08.ncgm.</span> The ncgm meta data file was built, but nothing as a picture or graph came out. <br><br></div><div>Could you please let me know why ncgm file did not built for my script and how I can fix it?<br></div><div><br></div>Thank you<div class=""><div id=":re" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 12:26 PM, Orion Poplawski <span dir="ltr"><<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 07/16/2015 07:19 PM, Negin Moghaddam wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Orion,<br>
<br>
I installed all the following missing libraries but I got another error<br>
which I think relates to cairo.<br>
<br>
Could you please help me to solve this issue. Thank you.<br>
<br>
libraries installed:<br>
<br>
libX11-devel<br>
libX11<br>
libXt<br>
libXext-devel<br>
cairo-devel<br>
libpng<br>
expat-devel<br>
bzip2-devel<br>
<br>
The error is:<br>
<br>
[neginm@civ-1215x ~]$ ncargex cpex08 -clean<br>
<br>
NCAR Graphics Fortran Example <cpex08><br>
<br>
Copying cpex08.f<br>
<br>
Copying cpexcc.f<br>
<br>
Compiling and linking...<br>
/usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp<br>
-O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.3.0/lib<br>
-L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo<br>
-lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender<br>
-lbz2<br>
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function<br>
`cro_OpenWorkstation':<br>
cro.c:(.text+0x3efd): undefined reference to<br>
`cairo_recording_surface_create'<br>
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function<br>
`cro_ClearWorkstation':<br>
cro.c:(.text+0x4be5): undefined reference to<br>
`cairo_recording_surface_create'<br>
collect2: ld returned 1 exit status<br>
<br>
The compile and link failed.<br>
</blockquote>
<br>
<br></div></div>
Looks like other's have run into this. See:<br>
<br>
<a href="http://mailman.ucar.edu/pipermail/ncl-install/2015-March/001747.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-install/2015-March/001747.html</a><span class=""><br>
<br>
-- <br>
Orion Poplawski<br>
Technical Manager <a href="tel:303-415-9701%20x222" value="+13034159701" target="_blank">303-415-9701 x222</a><br></span>
NWRA/CoRA Division FAX: <a href="tel:303-415-9702" value="+13034159702" target="_blank">303-415-9702</a><br>
3380 Mitchell Lane <a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a><br>
Boulder, CO 80301 <a href="http://www.cora.nwra.com" rel="noreferrer" target="_blank">http://www.cora.nwra.com</a><br>
</blockquote></div><br></div>