[Met_help] METv1.0 compile problem

John Halley Gotway johnhg at rap.ucar.edu
Thu Jan 10 14:23:42 MST 2008


Mike,

It appears that MET is linking to the shared object library file "libgsl.so", when it should be linking to the library archive file "libgsl.a".

Based on the contents of the log file you sent, I'm guessing you were using the PGI version of the makefile (named Makefile_pgi) in the top-level directory rather than the makefile for the GNU
compilers (named Makefile).  I can tell this since the call to g++ for MODE contains the "-Bstatic" option in the line, rather than the "-static" option that g++ actually recognizes.

If that's the case, please try to rebuild MET (be sure to do a 'make clean' first), but this time make sure to start with "Makefile" rather than "Makefile_pgi".

"Makefile" sets the compiler flags as:     FLAGS = -g -Wall -Wshadow -static
"Makefile_pgi" sets the compiler flags as: FLAGS = -g -Bstatic

If compiling with g++, as you appear to be doing, you need to use that first set of flags.

Please let me know whether or not that does the trick for you.

Thanks,
John Halley-Gotway

Mike Ku wrote:
> I have problem to compile METv1.0. Includes the make log file. 
> 
> Michael
> 
> **********************************************
> Michael Ku
> Research Scientist
> NYS Dept Environmental Conservation
> 625 Broadway
> Albany, 12233-3259
> Tel: 518-402-8385
> Fax: 518-402-9035
> mku at dec.state.ny.us
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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