[ncl-install] NCAR Graphics (Version 5.1.0) Installation Problem with 32-bit LINUX-UBUNTU system (GCC version 4.2.4)

Scasciamacchia Vincenzo stagista1.ost at est.asi.it
Mon Jun 1 04:22:27 MDT 2009


Hi, I am a new NCL-NCAR user.

 

I have a 32-bit LINUX-UBUNTU system with GCC version 4.2.4.

 

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".

 

I have setted:

 

export NCARG_ROOT=/usr/local/ncl

export PATH=/usr/local/ncl/bin:$PATH

export NCARG_USRRESFILE=/home/pc/Scrivania/NCL/1.hluresfile

export LD_LIBRARY_PATH=/usr/lib/gcc.

 

 

If I test NCL (typing "ng4ex gsun01n") then I have no problem and X11
window pops up with XY plot.

 
 
I have problem when I test NCAR Graphics (typing ncargex cpex08):
 
pc at pc-laptop:~$ export NCARG_ROOT=/usr/local/ncl 
pc at pc-laptop:~$ export PATH=/usr/local/ncl/bin:$PATH 
pc at pc-laptop:~$ export
NCARG_USRRESFILE=/home/pc/Scrivania/NCL/1.hluresfile 
pc at pc-laptop:~$ export LD_LIBRARY_PATH=/usr/lib 
pc at pc-laptop:~$ ncargex cpex08 
 
NCAR Graphics Fortran Example <cpex08> 
 
Copying cpex08.f 
 
Copying cpexcc.f 
 
Compiling and linking... 
 
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 
 
/usr/local/ncl/lib/libncarg.a(cpcldm.o): In function `cpcldm_': 
 
cpcldm.f:(.text+0x8ab): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0xf36): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0xfc8): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0x10bd): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0x11c4): undefined reference to `_gfortran_copy_string' 
 
/usr/local/ncl/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x127f): more
undefined references to `_gfortran_copy_string' follow 
 
collect2: ld returned 1 exit status 
 
The compile and link failed.
 
 
 
 
--> If I add "-L/usr/lib/gcc/i486-linux-gnu/4.1 -lgfortran" then the
situation doesn't change:
 
 
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
 
/usr/local/ncl/lib/libncarg.a(cpcldm.o): In function `cpcldm_': 
 
cpcldm.f:(.text+0x8ab): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0xf36): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0xfc8): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0x10bd): undefined reference to `_gfortran_copy_string' 
 
cpcldm.f:(.text+0x11c4): undefined reference to `_gfortran_copy_string' 
 
/usr/local/ncl/lib/libncarg.a(cpcldm.o):cpcldm.f:(.text+0x127f): more
undefined references to `_gfortran_copy_string' follow 
 
collect2: ld returned 1 exit status 
 
The compile and link failed.
 
 
 
 
--> What is the problem ? Can anyone help me?
 
 
 
 
 
 
 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20090601/bffc043b/attachment.html 


More information about the ncl-install mailing list