MM5-Terrain compiling error


I get the error message below when compling the make file in TERRAIN (MM5).
But in case I don’t use the NCARG, compiling is well done.
I am using the pfg90 compliler (10.5) with centos.

I don’t have any clues…
Can anyone help me?
Any comment will greatly appreciate.

uname -a > .tmpfile

if [ $? = 0 ]; then echo “Compiling for Linux” ;
( cd src ; make -i -f Makefile all
“RM = /bin/rm -f” “RM_LIST = *.o *.f core .tmpfile terrain.exe data_area.exe rdem.exe rdnml”
“LN = ln -s” “MACH = SGI”
“MAKE = make -i -f Makefile” “CPP = /lib/cpp”
“FC = pgf90” “FCFLAGS = -I. -byteswapio”
“LOCAL_LIBRARIES= -L/opt/lib.pgi/NCARG/lib -L/usr/lib64 -lncarg -lncarg_gks -lncarg_c -lpng -lz -lgfortran -lX11 -L/opt/pgi/linux86-64/10.5/lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -lg2c” ) ;
else echo “Do not know how to compile for the cat .tmpfile machine.”
fi ; \

( /bin/rm -f terrain.exe ; ln -s src/terrain.exe . ) ;
Linux lucas 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Compiling for Linux
make[1]: Entering directory /home/lim/AIR/MM5/TERRAIN/src' make[1]: *** No rule to make target …/Makefile’, needed by ia.o'. Stop. make[1]: Leaving directory /home/lim/AIR/MM5/TERRAIN/src’

Thank you…

I have a error message for using plotfmt in (MM5);
./plotfmt : error while loading shared libraries: : wrong ELF class : ELFCLASS64.

What’s wrong??