Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Rebuilding Seadas6.4 under CentOS5 (2951 hits)
By treble Date 2012-06-04 21:19 Edited 2012-06-04 21:45
Since I am on a Centos5.8 (with old GLIBC) I have to rebuild the binaries from source.

The following were not compiling properly (either gfortran (4.4) or Intel compiler) since they still had the old date:
IDLbathy
IDLlandmask
IDLread_meris_bands
IDLswfmapbin
l2binmatch

I was able to compile them all by fixing the Makefiles except for l2binmatch (I compared the Makefile for Seadas6.3 with the present one):
IDLbathy: Enable first option in Makefile (in directory $SEADAS/build/c4idl/IDLbathy):
LLIBS   =  -lsdsgen -lgenutils
#LLIBS   =  -lgenutils
IDLlandmask: Remove hk from first line in its Makefile
IDLread_meris_bands: Remove jk from first line in its Makefile
IDLswfmapbin: Remove map from first line in its Makefile

I haven't been able to fix l2binmatch.  I couldn't find an error associated with it either in the .out log files.

At the end of the compilations it now says:
Total expected libs/bins: 19/44
Total existing libs/bins: 17/47

So there is a mismatch in number of libs/bins.  Not sure from which I have too many or am missing.

These are my libs (in $SEADAS/build/lib):
lib24to8.a  libbin++.a     libhdfutils.a  libmap.a    libosmi.a    libseawifs.a
libanc.a    libczcs.a      libl2.a        libmeris.a  libsdsbin.a  libswfnav.a
libbin.a    libgenutils.a  libl2_viirs.a  libnav.a    libsdsgen.a


And here are my bins (in $SEADAS/run/bin/linux_64):
date2jd              IDLswfl3pname       l1asubset_modis  l2mapgen
fixrgb               IDLswfmapbin        l1bgen           l3bin
geocheck_modis       l0chunk_modis       l1bgen_modisa    l3bindump
geogen_modis         l0cnst_write_modis  l1bgen_modist    l3binmerge
IDLbathy             l0fix_modis         l1brsgen         l3gen
IDLlandmask          l0info_seawifs      l1info           l3rebin_meris
IDLmodismapbin       l0merge_seawifs     l1mapgen         lonlat2pixline
IDLread_meris_bands  l0regen_seawifs     l2bin            pdsinfo
IDLread_meris_data   l1aextract_modis    l2binmatch       pdsmerge
IDLread_meris_dims   l1aextract_seawifs  l2brsgen         smigen
IDLswf2idlmap        l1agen_modis        l2extract        smitoppm
IDLswfangle          l1agen_seawifs      l2gen


Wondering what I am missing...  Below messages while building:

Thanks,

./config/build_seadas

cd /opt/seadas6.4
'lib3 installation' in /opt/seadas6.4 started........

Install lib3 from source now (y/n)? [y]
y
Compiling lib3 from source...
grep Error makelib3.out
      (test $HDF5_Make_Ignore && echo "*** Error ignored") ||          \
      (test $HDF5_Make_Ignore && echo "*** Error ignored") ||          \
testframe.c: In function 'PrintErrorStackOn':
All Error API tests passed.
Error test                                                             PASSED
    ********Error expected**********
HDF error: (7) <Error opening file>
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
HDF error: (7) <Error opening file>
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
    ********Error expected**********
/usr/bin/gcc  -c -O2 -DH5_USE_16_API -DLINUX64 -Df2cFortran -DHDF4_NETCDF_HAVE_SD -DLINUX64 -DPGS_MET_COMPILE   -I/opt/seadas6.4/build/lib3src/src/sdptk/TOOLKIT/include -I/opt/seadas6.4/build/lib3src/src/sdptk/TOOLKIT/include/CUC -I/opt/seadas6.4/build/lib3/include -I/opt/seadas6.4/build/lib3/include PGS_MET_ErrorMsg.c -o /opt/seadas6.4/build/lib3src/src/sdptk/TOOLKIT/obj/linux64/MET/PGS_MET_ErrorMsg.o
cp PGS_MET_ErrorMsg.o tmp/METErrorMsg.o
/opt/seadas6.4/build/lib3src/src/sdptk/TOOLKIT/obj/linux64/MET/PGS_MET_ErrorMsg.o
make: [clean] Error 1 (ignored)
/usr/bin/install -c -m 644 libtiff.3tiff TIFFbuffer.3tiff TIFFClose.3tiff TIFFcodec.3tiff TIFFcolor.3tiff TIFFDataWidth.3tiff TIFFError.3tiff TIFFFlush.3tiff TIFFGetField.3tiff TIFFmemory.3tiff TIFFOpen.3tiff TIFFPrintDirectory.3tiff TIFFquery.3tiff TIFFReadDirectory.3tiff TIFFReadEncodedStrip.3tiff TIFFReadEncodedTile.3tiff TIFFReadRawStrip.3tiff TIFFReadRawTile.3tiff TIFFReadRGBAImage.3tiff TIFFReadRGBAStrip.3tiff TIFFReadRGBATile.3tiff TIFFReadScanline.3tiff TIFFReadTile.3tiff TIFFRGBAImage.3tiff TIFFSetDirectory.3tiff TIFFSetField.3tiff TIFFsize.3tiff TIFFstrip.3tiff TIFFswab.3tiff TIFFtile.3tiff TIFFWarning.3tiff TIFFWriteDirectory.3tiff TIFFWriteEncodedStrip.3tiff TIFFWriteEncodedTile.3tiff TIFFWriteRawStrip.3tiff TIFFWriteRawTile.3tiff TIFFWriteScanline.3tiff TIFFWriteTile.3tiff '/opt/seadas6.4/build/lib3/share/man/man3'
/usr/bin/install -c -m 644 index.html libtiff.3tiff.html TIFFbuffer.3tiff.html TIFFClose.3tiff.html TIFFcodec.3tiff.html TIFFcolor.3tiff.html TIFFDataWidth.3tiff.html TIFFError.3tiff.html TIFFFlush.3tiff.html TIFFGetField.3tiff.html TIFFmemory.3tiff.html TIFFOpen.3tiff.html TIFFPrintDirectory.3tiff.html TIFFquery.3tiff.html TIFFReadDirectory.3tiff.html TIFFReadEncodedStrip.3tiff.html TIFFReadEncodedTile.3tiff.html TIFFReadRawStrip.3tiff.html TIFFReadRawTile.3tiff.html TIFFReadRGBAImage.3tiff.html TIFFReadRGBAStrip.3tiff.html TIFFReadRGBATile.3tiff.html TIFFReadScanline.3tiff.html TIFFReadTile.3tiff.html TIFFRGBAImage.3tiff.html TIFFSetDirectory.3tiff.html TIFFSetField.3tiff.html TIFFsize.3tiff.html TIFFstrip.3tiff.html TIFFswab.3tiff.html TIFFtile.3tiff.html TIFFWarning.3tiff.html TIFFWriteDirectory.3tiff.html TIFFWriteEncodedStrip.3tiff.html TIFFWriteEncodedTile.3tiff.html TIFFWriteRawStrip.3tiff.html TIFFWriteRawTile.3tiff.html TIFFWriteScanline.3tiff.html TIFFWriteTile.3tiff.html fax2ps.1.html '/opt/seadas6.4/build/lib3/share/doc/tiff-4.0.0/html/man'

cd /opt/seadas6.4/config
'make clean install -f SeaDAS_processing.mk' in /opt/seadas6.4/config started........
'make -f SeaDAS.mk' in /opt/seadas6.4/config finished.
grep Error makesrc.out

'make install' in /opt/seadas6.4/build/c4idl started........
'make clean install' in /opt/seadas6.4/build/c4idl finished.
moving /opt/seadas6.4/build/lib/IDLshare.so /opt/seadas6.4/run/lib/.
grep Error makec4idl.out

'make install' in /opt/seadas6.4/build/utils started........
'make clean install' in /opt/seadas6.4/build/utils finished.
grep Error makeutils.out

cd /opt/seadas6.4/build/idl
'make install' in /opt/seadas6.4/build/idl started........
'make install' in /opt/seadas6.4/build/idl finished.
grep Error makesdssrc.out

Finished building SeaDAS.

Total expected libs/bins: 19/44
Total existing libs/bins: 17/47
By @sean Date 2012-06-05 13:03
Treble,

You're not missing anything.  l2binmatch isn't necessary, I just left it in the makefile as eventually we may explain how it can be used - so you can ignore it.
As for the mismatch, that's because I  neglected to update the numbers in the processing script.

Sean
By treble Date 2012-06-05 16:17
Excellent.  Thanks.
By Stefan Date 2012-07-19 21:19
Hi Treble,

could you please describe what exactly you have done to rebuild SeaDAS6.4 on CentOS5.

Thanks
Stefan
By Stefan Date 2012-07-22 01:41
I found what I was doing wrong. I wasn't doing the "source config/seadas.env".

Stefan
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Rebuilding Seadas6.4 under CentOS5 (2951 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo