Re: error when make TERRAIN

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 9 Jun 2008 08:08:04 -0600 (MDT)

On Mon, 9 Jun 2008, Li Weikeng wrote:

> Hello,
> some problems when I "make" TERRAIN of MM5:
> First install the NCARG and set the environment variable well.Then
> just type "make" in the directory of TERRAIN with no change of Makefile(choose
> using NCAR Graphics). Then there're some mistakes:
>
> Compiling for Linux
> make[1]: Entering directory `/root/mm5/TERRAIN/src'
> pgf90 -o terrain.exe ia.o anal2.o bint.o bndry.o crlnd.o crter.o dfclrs.o
> exaint.o finprt.o fudger.o interp.o label.o lakes.o latlon.o llxy.o mxmnll.o
> nestll.o oned.o outpt.o output.o pltter.o rdldtr.o replace.o rflp.o setup.o
> sint.o smth121.o smther.o smthtr.o terdrv.o terrain.o tfudge.o vtran.o
> xyobsll.o hiresmap.o plots.o crvst.o crvst30s.o nestbdy.o crsoil.o equate.o
> labels.o labelv.o patch.o plotcon.o watercheck.o crlwmsk.o soil_tg.o
> water_vfr.o check_data.o terrestial_info.o write_fieldrec.o
> -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11
> -L/opt/pgi/linux86/lib -L/usr/lib -lf2c
> /usr/lib/libf2c.a: could not read symbols: File format not recognized
> make[1]: [terrain.exe] Error 2 (ignored)
> make[1]: Leaving directory `/root/mm5/TERRAIN/src'
>
> But if I
> (1)edit Makefile with no NCARG:
> NCARGRAPHICS = NONCARG
> (2)and remove the libraries (or RHS) in the LOCAL_LIBRARIES:
> "LOCAL_LIBRARIES= -L$(NCARG_ROOT)/lib -L/usr/X11R6/lib -lncarg -lncarg_gks
> -lncarg_c -lX11 -L$(PGI)/linux86/lib -L/usr/lib -lf2c"
> ===>
> "LOCAL_LIBRARIES= -L$(PGI)/linux86/lib -L/usr/lib -lf2c"
>
> then there's no problem when I "make" TERRAIN. I have download the libf2c.a
> from UCAR ftp to /usr/lib/,or copy it from other computers, and the error
> still happen. How can I fix it?
> My system: Fedora7 Linux
> GNU LIBC version:2.6
> MM5:V3-7-0
> NCARG:both 4.4.2 and 5.0.0have been installed and tried but it's the same .
> --
> Best regards

The error messages above are confusing, because it looks like it's
saying there's something wrong with the "libf2c.a" library (which is
not part of NCAR Graphics), but yet you were able to include it the
second time around and it worked.

Did you download a precompiled version of NCAR Graphics? If so, maybe
you downloaded the wrong one. What does "uname -a" on your
system report?

Also, can you try running a small NCAR Graphics test to see if
it works:

  ncargex -W x11 agex01 -clean

This should pop a up an X11 window with an XY plot, and when you click
on it with your left mouse button, the X11 window will go away.

--Mary

> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Mon Jun 09 2008 - 08:08:04 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 18 2008 - 12:40:27 MDT