Configuring incomplete, errors occurred!-unable to find Boost library

Please enter here to ask a question about any NASA Science related topics!
Post Reply
ksharsun
Posts: 11
Joined: Wed Jun 06, 2018 10:07 am America/New_York

Configuring incomplete, errors occurred!-unable to find Boost library

by ksharsun » Fri Nov 01, 2019 3:40 pm America/New_York

Hi,
I am installing SeaDAS 7.5.3 in ubuntu 16.04.

After Everything Built Successfully, I am getting following issue while doing cmake .

pc@pc:~/seadas/ocssw/ocssw-src/cocssw-src$ cmake ../
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.60.0

  Boost include path: /home/pc/seadas/ocssw/opt/include

  Could not find the following Boost libraries:

          boost_date_time

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  src/oc/CMakeLists.txt:30 (find_package)

-- Found Check: /usr/lib/x86_64-linux-gnu/libcheck.a (found suitable version "0.10.0", minimum required is "0.9.11")
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found Check: /usr/lib/x86_64-linux-gnu/libcheck.a (found suitable version "0.10.0", minimum required is "0.9.10")
-- Configuring incomplete, errors occurred!
See also "/home/pc/seadas/ocssw/ocssw-src/cocssw-src/CMakeFiles/CMakeOutput.log".
See also "/home/pc/seadas/ocssw/ocssw-src/cocssw-src/CMakeFiles/CMakeError.log".

Please guide me further for resolving this issue.

Tags:

gnwiii
Posts: 640
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2

Configuring incomplete, errors occurred!-unable to find Boost library

by gnwiii » Fri Nov 01, 2019 9:06 pm America/New_York

boost_date_time appears to have been omitted from $OCSSWROOT/opt/src/boost/BuiltIt the bootstrap.sh line:


./bootstrap.sh --prefix=$installdir --with-libraries=chrono,filesystem,timer

needs to be:
./bootstrap.sh --prefix=$installdir --with-libraries=chrono,filesystem,timer,date_time

The boost libraries are also packaged in most distributions, so the omission could easily be overlooked if the distro version had been installed.  You should be able to install the full set of boost libraries by running the updated  $OCSSWROOT/opt/src/boost/BuiltIt.   You can then go directly to the cmake .. step.

ksharsun
Posts: 11
Joined: Wed Jun 06, 2018 10:07 am America/New_York

Configuring incomplete, errors occurred!-unable to find Boost library

by ksharsun » Sat Nov 02, 2019 4:45 pm America/New_York

Followed the above mentioned step and  issue of cmake was cleared. And then make and make install are done without any issue.
After that I tried to process Modis-Aqua image, it generates another error:

pc@pc:~/Downloads$ ./autoprocess.bash
Starting to process images in data/ folder.

Extracting bz2 archive: A2017037194500.L1A_LAC.bz2

  A2017037194500.L1A_LAC.bz2: done

Starting to process GEO: A2017037194500.L1A_LAC

** Files utcpole.dat/leapsec.dat are more than 2 weeks old.
** Running update_luts.py to update files...

Downloading files into /home/pc/seadas/ocssw/var/modis
...no new files.

Downloading files into /home/pc/seadas/ocssw/var/modisa
...no new files.

Downloading files into /home/pc/seadas/ocssw/var/modisa/cal/OPER
...no new files.

Downloading files into /home/pc/seadas/ocssw/var/modisa/xcal/OPER
...no new files.
Determining required attitude and ephemeris files...
Searching database: /home/pc/seadas/ocssw/var/ancillary_data.db
()
Input file: A2017037194500.L1A_LAC
Sensor    : modisa
Start time: 2017037194500
End time  : 2017037194959
()
Downloading 'PM1EPHND.P2017037.1200.003' to /home/pc/seadas/ocssw/var/anc/2017/037
Downloading 'PM1ATTNR.P2017037.1800.003' to /home/pc/seadas/ocssw/var/anc/2017/037

Creating MODIS geolocation file...
/home/pc/seadas/ocssw/bin/geogen_modis: error while loading shared libraries: libhdf5.so.10.3.0: cannot open shared object file: No such file or directory
geogen_modis returned with exit status: 127
*** ERROR: geogen_modis failed to produce a geolocation file.
('*** Validation test failed for geolocation file:', 'A2017037194500.GEO')
('Validation test returned with error code: ', SystemExit(1,))
ERROR: MODIS geolocation processing failed.

Starting to process L1B: A2017037194500.L1A_LAC

Assuming GEOFILE is A2017037194500.GEO

LUT directory: /home/pc/seadas/ocssw/var/modisa/cal/OPER
LUT version: 6.2.1.33_OC_v1.33
Reflective LUT: MYD02_Reflective_LUTs.V6.2.1.33_OC_v1.33.hdf
Emissive LUT: MYD02_Emissive_LUTs.V6.2.1.33_OC_v1.33.hdf
QA LUT: MYD02_QA_LUTs.V6.2.1.33_OC_v1.33.hdf

ERROR: File A2017037194500.GEO does not exist.

Starting to process L2: A2017037194500.L1B_LAC

Getting Ancillary information: A2017037194500.L1B_LAC

Searching database: /home/pc/seadas/ocssw/var/ancillary_data.db
*** ERROR: Input file doesn't exist and mission not set...bailing out...


Processing Level 2 product: A2017037194500.L1B_LAC

l2gen: error while loading shared libraries: libanc.so: cannot open shared object file: No such file or directory

Projecting processed product: A2017037194500.L2_LAC

gnwiii
Posts: 640
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2

Configuring incomplete, errors occurred!-unable to find Boost library

by gnwiii » Sat Nov 02, 2019 7:10 pm America/New_York

Did you build the ocssw software from source because you had problems running the NASA binaries?   Did you follow the suggestion at the end of the build instructions to install and run the benchmark script?  Is your Ubuntu 16.04 a fresh install or one that may have been customized before the OCSSW software was installed? 

Using what seems to be a private script ./autoprocess.bash means others can't reproduce your problem.  Do you get the same error when you run geogen_modis in a terminal (after ensuring that OCSSWROOT is set and running ". $OCSSSWROOT/OCSSW_bash.env")?

You should verify that the ./autoprocess.bash script actually uses the versions you compiled.  Normally the programs will print a version and build date, so it appears that the script is hiding important details.   Since geogen_modis failed, the message "*** ERROR: Input file doesn't exist and mission not set...bailing out..." probably refers to the missing GEO file.  You might want to modify the script so it exits after an error has occurred.   

Problems with dynamically loaded libraries can have many causes, including linux security measures that place restrictions on the way dynamic libraries can be used and [ab]use of LD_LIBRARY_PATH.

Post Reply