[Met_help] MET make problem

John Halley Gotway johnhg at rap.ucar.edu
Thu Jul 17 11:44:29 MDT 2008


Howard,

I've seen other MET-Help questions with similar types of errors.  And I'm still trying to figure out what exactly is going on.  I've tried to reproduce the error here, but haven't been able to do so.

Do you by any chance have the "gfortran" compiler available on your machine?  Try doing "which gfortran" to see if it's in your path.

If you do have gfortran, try doing the following:

(1) Go back to BUFRLIB and recompile it using "gfortran" instead of "g77".

(2) Edit the top-level MET Makefile as follows:
Set FC = the path to gfortran
Set FC_LIBS = -lgfortran
Set F2C_BASE, F2C_INCS, F2C_LIBS, and F2C_LIBNAME all to empty:
F2C_BASE     =
F2C_INCS     =
F2C_LIBS     =
F2C_LIBNAME  =

(3) Recompile MET, being sure to do a "make clean" first.

Please let me know how it goes.  I'm really not sure why you're getting these errors, but I think it may have something to do with the F2C library.

Thanks,
John Halley-Gotway
johnhg at ucar.edu

Howard Che wrote:
> To whom it may concern,
> 
> Since I am following the README, I have some errors when I am installing MET. Do you have any suggestions for the errors? The following is the error codes:
> 
> *** Making pb2nc application ***
> 
> /usr/bin/g++ -c pb2nc_Conf.cc -Wall -Wshadow -static   \
> -I../../lib
> /usr/bin/g77 -c numpbmsg.f -Wall -Wshadow -static  
> /usr/bin/g77 -c openpb.f -Wall -Wshadow -static  
> /usr/bin/g77 -c readpb.f -Wall -Wshadow -static  
> /usr/bin/g77 -c dumppb.f -Wall -Wshadow -static  
> 
> 
> /usr/bin/g++ -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o dumppb.o  \
> -Wall -Wshadow -static   -DMET_BASE=\"/data/US_Air05/user/howard/METv1.1\" \
> -I../../lib -I/data/US_Air05/user/howard/netcdf3-install/include -I/data/US_Air05/user/howard/gsl-install/include -I/data/US_Air05/user/howard/BUFRLIB -I/data/US_Air05/user/howard/f2c \
> -L../../lib -L/data/US_Air05/user/howard/netcdf3-install/lib -L/data/US_Air05/user/howard/gsl-install/lib -L/data/US_Air05/user/howard/BUFRLIB -L/data/US_Air05/user/howard/f2c \
> -lvx_met_util -lvx_analysis_util -lvx_wrfdata -lvx_met_util \
>         -lvx_contable -lvx_grib_classes \
> -lvx_econfig -lvx_gsl_prob -lgsl \
> -lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
> -lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math -lm \
> -lnetcdf_c++ -lnetcdf \
> -lbufr -llibf2c -L/usr/lib/gcc/x86_64-redhat-linux/3.4.5 
> In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/iosfwd:48,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ios:44,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ostream:45,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/iostream:45,
>                  from pb2nc.cc:40:
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:68: error: `::isalnum' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:69: error: `::isalpha' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:70: error: `::iscntrl' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:71: error: `::isdigit' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:72: error: `::isgraph' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:73: error: `::islower' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:74: error: `::isprint' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:75: error: `::ispunct' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:76: error: `::isspace' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:77: error: `::isupper' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:78: error: `::isxdigit' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:79: error: `::tolower' has not been declared
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/cctype:80: error: `::toupper' has not been declared
> In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:132,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ios:51,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ostream:45,
>                  from /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/iostream:45,
>                  from pb2nc.cc:40:
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:45: error: `_ISupper' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:46: error: `_ISlower' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:47: error: `_ISalpha' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:48: error: `_ISdigit' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:49: error: `_ISxdigit' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:50: error: `_ISspace' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:51: error: `_ISprint' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:52: error: `_ISalpha' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:52: error: `_ISdigit' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:52: error: `_ISpunct' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:53: error: `_IScntrl' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:54: error: `_ISpunct' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:55: error: `_ISalpha' was not declared in this scope
> /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/x86_64-redhat-linux/bits/ctype_base.h:55: error: `_ISdigit' was not declared in this scope
> make[3]: *** [pb2nc] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [targets] Error 2
> make: *** [all] Error 2
> 
> Regards,
> Howard
> 
>        
> ---------------------------------
> Yahoo!???? @ymail.com ????,?D???????!????
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help


More information about the Met_help mailing list