[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decoders install problem (fwd)
- Subject: Re: decoders install problem (fwd)
- Date: Tue, 9 Dec 2003 16:14:53 -0700 (MST)
Enils,
Here's a solution to your problem. Steve was correct about the different
versions of the compiler. I believe that there is a problem with the
decoders package using the wrong libraries that caused the problem. The
solution is to make the decoders package use the correct libraries.
Here's the steps:
The latest netCDF package builds OK on our Red Hat 9 system:
$ make distclean
$ uname -a
Linux rodney.unidata.ucar.edu 2.4.20-13.7-athlon-smp #3 SMP Tue Jun 3
10:36:25 MDT 2003 i686 athlon i386 GNU/Linux
$ cat VERSION
3.5.1-beta13
$ CC=/usr/bin/gcc CPPFLAGS='-DNDEBUG -Df2cFortran' CFLAGS=-O
FC=/usr/bin/g77 FFLAGS='-O -Wno-globals' CXX=/usr/bin/g++ ./configure
&>configure.log
$ make &>make.log
$ make test &>test.log
$ make install
$ less test.log # it looks OK
The UDUNITS package (minus the Perl extension) builds OK on the same system:
$ make distclean
$ cat VERSION
1.12.1
$ CPPFLAGS=-Df2cFortran CC=/usr/bin/gcc PERL= ./configure &>configure.log
$ make &>make.log
$ make test &>test.log
$ make install
$ less test.log # it looks OK
The decoders package
$ make distclean
$ CPP_NETCDF=-I/home/rkambic/netcdf/netcdf-3.5.0/include
$ LD_NETCDF="-L/home/rkambic/netcdf/netcdf-3.5.0/lib -lnetcdf"
$ CPP_UDUNITS=-I/home/rkambic/udunits/udunits-1.12.1/include
$ LD_UDUNITS "-L/home/rkambic/udunits/udunits-1.12.1/lib -ludunits
-ludport"
Note:
The above paths need to be corrected for you build trees. I would test the
dirs with the ls command.
$ CC=/usr/bin/gcc ./configure &>configure.log
$ make &>make.log
$ make test &>test.log
$ make install
$ less test.log # it looks OK
If the decoders can't find the netcdf/udunits includes/libraries then look
at the configure.log to make sure that the configuration is correct.
If you still have a problem, it's possible that your PATH or
LD_LIBRARY_PATH might have to be changed. I don't think that's the
problem though.
The compiler versions are:
$ /usr/bin/gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
...
$ /usr/bin/g77 --version
GNU Fortran (GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) 3.2.2 20030222
(Red Hat Linux 3.2.2-5)
...
> Robb...
> No offense to anybody, but installing a software product now-days should not
> have to be as painful as it is.