<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:12.2pt;
        margin-bottom:.0001pt;
        font-size:11.5pt;
        font-family:Courier;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=IT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>Hi, I am a new NCL-NCAR user.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>I have a 32-bit LINUX-UBUNTU
system with GCC version 4.2.4.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>I have downloaded “NCL
5.1.0 32-bit binary for i686 chips for LINUX (compiled with gcc 4.1.2)”
from “earthsystemgrid” site and installed in “/usr/local/ncl”.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>I have setted:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<pre style='margin-left:0cm'><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>export NCARG_ROOT=/usr/local/ncl<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>export PATH=/usr/local/ncl/bin:$PATH<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>export
NCARG_USRRESFILE=/home/pc/Scrivania/NCL/1.hluresfile<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Courier New"'>export
LD_LIBRARY_PATH=/usr/lib/gcc.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<pre style='margin-left:0cm'><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></pre>
<p class=MsoNormal><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>If I test NCL (typing “ng4ex
gsun01n”) then I have no problem and X11 window pops up with XY plot.<o:p></o:p></span></font></p>
<pre style='margin-left:0cm'><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=4 face="Courier New"><span lang=EN-GB
style='font-size:14.0pt;font-family:"Courier New"'>I have problem when I test NCAR Graphics (typing ncargex cpex08):<o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>pc@pc-laptop:~$ export NCARG_ROOT=/usr/local/ncl <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>pc@pc-laptop:~$ export PATH=/usr/local/ncl/bin:$PATH <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>pc@pc-laptop:~$ export NCARG_USRRESFILE=/home/pc/Scrivania/NCL/1.hluresfile <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>pc@pc-laptop:~$ export LD_LIBRARY_PATH=/usr/lib <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>pc@pc-laptop:~$ ncargex cpex08 <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>NCAR Graphics Fortran Example <cpex08> <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>Copying cpex08.f <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>Copying cpexcc.f <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>Compiling and linking... <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>/usr/local/ncl/lib/libncarg.a(cpcldm.o): In function `cpcldm_': <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>cpcldm.f:(.text+0x8ab): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>cpcldm.f:(.text+0xf36): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>cpcldm.f:(.text+0xfc8): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>cpcldm.f:(.text+0x10bd): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>cpcldm.f:(.text+0x11c4): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>/usr/local/ncl/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x127f): more undefined references to `_gfortran_copy_string' follow <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>collect2: ld returned 1 exit status <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:12.0pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:12.0pt'>The compile and link failed.<o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=4 face=Wingdings><span lang=EN-GB
style='font-size:14.0pt;font-family:Wingdings'>à</span></font><font
size=4 face="Courier New"><span lang=EN-GB style='font-size:14.0pt;font-family:
"Courier New"'> If I add “-L/usr/lib/gcc/i486-linux—gnu/4.1 -lgfortran” then the situation doesn’t change:<o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl/lib -L/usr/X11R6/lib -L/usr/lib/gcc/i486-linux—gnu/4.1 –lgfortran -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng –lz<o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>/usr/local/ncl/lib/libncarg.a(cpcldm.o): In function `cpcldm_': <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>cpcldm.f:(.text+0x8ab): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>cpcldm.f:(.text+0xf36): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>cpcldm.f:(.text+0xfc8): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>cpcldm.f:(.text+0x10bd): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>cpcldm.f:(.text+0x11c4): undefined reference to `_gfortran_copy_string' <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>/usr/local/ncl/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x127f): more undefined references to `_gfortran_copy_string' follow <o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>collect2: ld returned 1 exit status <o:p></o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'>The compile and link failed.<o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=4 face=Wingdings><span lang=EN-GB
style='font-size:14.0pt;font-family:Wingdings'>à</span></font><font
size=4 face="Courier New"><span lang=EN-GB style='font-size:14.0pt;font-family:
"Courier New"'> What is the problem ? Can anyone help me?<o:p></o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre><font
size=3 face=Courier><span lang=EN-GB style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre><pre
style='margin-left:0cm'><font size=3 face=Courier><span lang=EN-GB
style='font-size:11.5pt'><o:p> </o:p></span></font></pre>
<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'> </span></font><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>