<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Actually, I've already tried to type <br>
<big><i><small>ncargex cpex08 -n</small></i></big><br>
and then<br>
<i>gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp
-O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz
-lXrender -lbz2</i><br>
in two separated lines, but when I saw no results I tried to type
them in one command line... <br>
Anyway, the command <br>
<big><i><small>ncargex cpex08<br>
</small></i><small>gives always<br>
<i>NCAR Graphics Fortran Example <cpex08></i><i><br>
</i><i><br>
</i><i> Copying cpex08.f</i><i><br>
</i><i><br>
</i><i> Copying cpexcc.f</i><i><br>
</i><i><br>
</i><i>Compiling and linking...</i><i><br>
</i><i>gfortran -fPIC -fno-second-underscore -fno-range-check
-fopenmp -O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib -L/usr/X11R6/lib64 -lncarg
-lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig
-lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lXrender
-lbz2</i><i><br>
</i><i>/usr/bin/ld: impossibile trovare -liconv</i><i><br>
</i><i>collect2: error: ld returned 1 exit status</i><i><br>
</i><i><br>
</i><i>The compile and link failed.</i><br>
</small></big>Trying to write them in separated lines, there's not
any error message (also including <i>-fPIC</i> in the second
command line), but what should be the result? Because I don't see
anything (graphs and so on) appearing on my screen...<br>
<br>
<div class="moz-cite-prefix">Il 06/08/2014 16:44, Mary Haley ha
scritto:<br>
</div>
<blockquote
cite="mid:CACNN_C+VvO-h2WT-98EDKYAuhojj5P70RwvANFDGzfVNQe7g7Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">I think you
are combining two commands on one line.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">
This command should be on a line by itself:</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">ncargex
cpex08 -n</div>
<div class="gmail_default" style="font-size:small">
<br>
</div>
<div class="gmail_default" style="font-size:small">Then, try
typing:</div>
<div class="gmail_default" style="font-size:small">
<blockquote type="cite"
style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.800000190734863px">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<small>gfortran -fPIC -fno-second-underscore
-fno-range-check -fopenmp -O -o cpex08 cpexcc.f
cpex08.f -L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c
-lX11 -lXext -lcairo -lfontconfig -lpixman-1
-lfreetype -lexpat -lpng -lz -lXrender -lbz2</small></div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">What I
usually do, to make things easier, is first type:</div>
<div class="gmail_default" style="font-size:small">
<br>
</div>
<div class="gmail_default" style="font-size:small">ncargex
cpex08</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">(Note I
didn't include the "-n"). This will try to compile the program
and it will echo the command it is using. You can copy and
paste this command as it is echoed, except leave out the
"-fPIC" part. That's basically what the "gfortran" line above
is.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">--Mary</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Aug 5, 2014 at 9:15 AM, Giorgio
Graffino <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:giorgio.graffino@alice.it" target="_blank">giorgio.graffino@alice.it</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">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Mary. The command line <br>
<small>gfortran --version <br>
</small>reports<br>
<small>GNU Fortran (Ubuntu 4.8.2-19ubuntu1) 4.8.2<br>
Copyright (C) 2013 Free Software Foundation, Inc.<br>
<br>
GNU Fortran comes with NO WARRANTY, to the extent
permitted by law.<br>
You may redistribute copies of GNU Fortran<br>
under the terms of the GNU General Public License.<br>
For more information about these matters, see the
file named COPYING</small><br>
and I think it's the latest version available. <br>
I typed<br>
<small>ncargex cpex08 -n gfortran
-fno-second-underscore -fno-range-check -fopenmp
-O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib -L/usr/X11R6/lib64
-lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo
-lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
-lz -lXrender -lbz2</small><br>
<div>and the result is<br>
<small>/usr/local/ncl-6.2.0/bin/ncargex : Unknown
option <-fno-second-underscore></small><br>
so I tried<br>
<small>ncargex cpex08 -n gfortran -fno-range-check
-fopenmp -O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib -L/usr/X11R6/lib64
-lncarg -lncarg_gks -lncarg_c -lX11 -lXext
-lcairo -lfontconfig -lpixman-1 -lfreetype
-lexpat -lpng -lz -lXrender -lbz2</small><br>
and the result is<br>
<small>/usr/local/ncl-6.2.0/bin/ncargex : Unknown
option <-fno-range-check></small><br>
and so on.<br>
I'm thinking that I made some mistake when I've
installed the software, even if the <i>ng4ex </i>test
works well... If necessary, how can I completely
re-install the software?<br>
Thanks a lot.<br>
Giorgio Graffino<br>
Il 29/07/2014 05:48, Mary Haley ha scritto:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-size:small">It looks to me like
you have an older gfortran that doesn't
recognize "-fPIC".</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small">What does:</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small"> gfortran --version</div>
<div class="gmail_default"
style="font-size:small"> <br>
</div>
<div class="gmail_default"
style="font-size:small">report?</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small">You can try removing
"-fPIC" from the compile line to see what
happens. This is normally the default anyway,
so it's not critical that you include it.</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small">--Mary</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Jul 27, 2014 at
12:41 PM, Giorgio Graffino <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:giorgio.graffino@alice.it"
target="_blank">giorgio.graffino@alice.it</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi
Mary, I've typed <br>
<br>
<small>ncargex cpex08 -n gfortran -fPIC
-fno-second-underscore -fno-range-check
-fopenmp -O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg -lncarg_gks
-lncarg_c -lX11 -lXext -lcairo</small><br>
<br>
and then<br>
<br>
<small>ncargex cpex08 -n gfortran -fPIC
-fno-second-underscore -fno-range-check
-fopenmp -O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg -lncarg_gks
-lncarg_c -lX11 -lXext -lcairo
-lfontconfig -lpixman-1 -lfreetype
-lexpat -lpng -lz -lXrender -lbz2</small><br>
<br>
but the results is always<br>
<br>
<small>/usr/local/ncl-6.2.0/bin/ncargex :
Unknown option <-fPIC></small><br>
<br>
Where am I wrong?<br>
Giorgio Graffino<br>
<br>
<br>
<div>Il 25/07/2014 22:41, Mary Haley ha
scritto:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div class="gmail_default"
style="font-size:small">Hi
Giorgio,</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small">Try
compiling the program without
"-liconv" and see what happens.
To do this, first type:</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small">ncargex
cpex08 -n</div>
<div class="gmail_default"
style="font-size:small"><br>
</div>
<div class="gmail_default"
style="font-size:small"> and then
copy and paste the full compile
line, but without the -liconv. In
fact, I recommend trying it
without many of those last few
libraries and see how far you get:</div>
<div class="gmail_default"
style="font-size:small"> <br>
</div>
</div>
<div>
<div class="gmail_default"
style="font-size:small"><span
style="font-family:arial,sans-serif;font-size:10.399999618530273px">gfortran
-fPIC -fno-second-underscore
-fno-range-check -fopenmp -O -o
cpex08 cpexcc.f cpex08.f
-L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg
-lncarg_gks -lncarg_c -lX11
-lXext -lcairo </span><br
style="font-family:arial,sans-serif;font-size:10.399999618530273px">
</div>
<div class="gmail_default"><font
face="arial, helvetica,
sans-serif"><br>
</font></div>
</div>
<div>
<div class="gmail_default"><font
face="arial, helvetica,
sans-serif">At a minimum, you
need the "-lcairo" library. If
you find the above statement
still gives you undefined
references, then try adding back
in the original libraries in the
order they appear.</font></div>
<div class="gmail_default"><font
face="arial, helvetica,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font
face="arial, helvetica,
sans-serif">--Mary</font></div>
<div class="gmail_default"
style="font-size:small"> <span
style="font-family:arial,sans-serif;font-size:10.399999618530273px"><br>
</span></div>
<div class="gmail_default"
style="font-size:small"><span
style="font-family:arial,sans-serif;font-size:10.399999618530273px"><br>
</span></div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>On Tue, Jul 22, 2014 at 5:34
AM, Giorgio Graffino <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:giorgio.graffino@alice.it"
target="_blank">giorgio.graffino@alice.it</a>></span>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div>
<div>
<div text="#000000"
bgcolor="#FFFFFF"> Good
morning. <br>
I've downloaded NCL (v6.2.0)
from the web page <a
moz-do-not-send="true"
href="https://www.earthsystemgrid.org/dataset/ncl.620.html"
target="_blank">https://www.earthsystemgrid.org/dataset/ncl.620.html</a>
and i've chosen a Linux
OPeNDAP-enabled version,
more exactly the <u>ncl_ncarg-6.2.0.Linux_Debian7.4_x86_64_gcc472.tar.gz</u>
file, according to the
guidelines contained in this
page <a
moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Download/linux.shtml"
target="_blank">http://www.ncl.ucar.edu/Download/linux.shtml</a>.
I have an Ubuntu system
(v13.10) with gcc v4.8.1. <br>
After the installation, the
test <i>ng4ex gsun01n
-clean</i> works well, but
the test <i>ncargex cpex08
-clean</i> gives the
following results<br>
<br>
<small>NCAR Graphics
Fortran Example
<cpex08><br>
<br>
Copying cpex08.f<br>
<br>
Copying cpexcc.f<br>
<br>
Compiling and linking...<br>
gfortran -fPIC
-fno-second-underscore
-fno-range-check -fopenmp
-O -o cpex08 cpexcc.f
cpex08.f
-L/usr/local/ncl-6.2.0/lib
-L/usr/X11R6/lib64 -lncarg
-lncarg_gks -lncarg_c
-lX11 -lXext -lcairo
-lfontconfig -lpixman-1
-lfreetype -lexpat -lpng
-lz -liconv -lXrender
-lbz2<br>
/usr/bin/ld: impossibile
trovare -liconv<br>
collect2: error: ld
returned 1 exit status<br>
<br>
The compile and link
failed.</small><br>
<br>
where "impossibile trovare"
means "cannot find". <br>
Unfortunately, I must have
NCAR Graphics working on my
system... I've already
installed the libraries
suggest in <a
moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Download/linux.shtml"
target="_blank">http://www.ncl.ucar.edu/Download/linux.shtml</a>
and also iconv (v2.17), as
suggested in <a
moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Support/install_archives/2014/0141.html"
target="_blank">http://www.ncl.ucar.edu/Support/install_archives/2014/0141.html</a>.
I failed when I tried to
compile the <i>CPEX08 </i>program
without<i> -liconv</i> and
to modify any "ncarg" file
by myself. Any other
suggestions?<br>
Thanks a lot. <br>
<span><font color="#888888">
Giorgio Graffino<br>
<br>
<br>
</font></span></div>
<br>
</div>
</div>
<div>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber
options, unsubscribe:<br>
<a moz-do-not-send="true"
href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options,
unsubscribe:<br>
<a moz-do-not-send="true"
href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a moz-do-not-send="true"
href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>