Re: ncarg4.1.1 with linux redhat 6.1

From: rvk (ftrk AT unknown)
Date: Wed Oct 04 2000 - 20:27:25 MDT


Dear Mary, Ethan :
First of all big thx for the prompt reply & help!
I fixed the bug. Surprisingly I didn't have f2c on my machine!! So I had to
grab the f2c-19991109-2.i386.rpm from redhat mirror site and install it. And I
had to change the version # too as mentioned by you guys.
L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27 to
-L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 That fixed the problem. I
could run the basic01.f and get the plot as shown in http://ngwww.ucar.edu/ngdoc/ng/qsg/basic/basic01.html.
But I tried the hluex ngmath example, i.e; nm05.f and it gave the following message. Hmmm, I guess I
need to first learn to use this and fix them problems(lots, I am sure:) ) as
they come along!
Cheers
raj
ps: I guess I need to have dsgrid2s.f and other subroutines etc or is ngmath a
seperate library??

[raj@chandra ncar]$ ng4ex nm05f.f
NCAR Graphics High Level Utility Fortran Example <nm05f>
 
 
This example requires the math library, -lngmath, to be
loaded during the link phase.
 
  Copying nm05f.f
 
Compiling and linking...
g77 -o nm05f nm05f.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib -L/usr/local/lib -I/usr/local/ncarg/include -I/usr/X11R6/include -lhlu -lncarg -lncarg_gks -lncarg_c -lngmath -lX11 -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lf2c -Wl,-Bdynamic -lm
/tmp/ccWCErPf.o: In function `MAIN__':
/tmp/ccWCErPf.o(.text+0x302): undefined reference to `dssetr_'
/tmp/ccWCErPf.o(.text+0x344): undefined reference to `dsgrid2s_'
/tmp/ccWCErPf.o(.text+0x417): undefined reference to `dssetr_'
/tmp/ccWCErPf.o(.text+0x459): undefined reference to `dsgrid2s_'
/tmp/ccWCErPf.o(.text+0x4dc): undefined reference to `dssetr_'
/tmp/ccWCErPf.o(.text+0x51e): undefined reference to `dsgrid2s_'
collect2: ld returned 1 exit status
Executing <nm05f>...
 
./nm05f: Command not found.
 
Finished executing <nm05f>...

> Dear Raj,
>
> You probably already have the f2c library installed on your
> system. You just need to find it and then modify the compilation
> script to point to the correct path.
>
> Try looking somewhere under /usr/lib/gcc-lib/i386-redhat-linux. It
> should be in a directory "egcs-x.yy.zz" where "x.yy.zz" is a version
> number.
>
> Once you find it, modify the file $NCARG_ROOT/bin/nhlf77 and change
> the following path:
>
> -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27
>
> to the one that contains "libf2c.a" on your system. You might need to
> modify $NCARG_ROOT/bin/{nhlcc,ncargf77,ncargcc} and make similar
> changes.
>
> --Mary

-- 
rvk
26**2+6**2 gi&dop
uaf,fbks,ak 99775
"Ideas, I never memorize lines."-Bobby, the only one!



This archive was generated by hypermail 2b29 : Fri Oct 06 2000 - 09:12:18 MDT