Skip to content

Linux self extracting binary does not install correctly on Debian Stretch

Description

The otbenv.profile generated after extraction contains errors wich prevent the correct finding of shared libraries:

The OUTDIR variable is not defined (it should point to the install directory) and when used in the file is referred as OUTDIR instead of $OUTDIR (same problem for mapla.sh and monteverdi.sh). For instance:

CMAKE_PREFIX_PATH=OUT_DIR
export CMAKE_PREFIX_PATH

# check and set OTB_APPLICATION_PATH
if [ -z "$OTB_APPLICATION_PATH" ] || [ "$OTB_APPLICATION_PATH" = "" ]; then
    OTB_APPLICATION_PATH=OUT_DIR/lib/otb/applications
else
    OTB_APPLICATION_PATH=OUT_DIR/lib/otb/applications:$OTB_APPLICATION_PATH
fi

Also, the LD_LIBRARY_PATH is not set. Only the OTB_APPLICATION_PATH, PATH and PYTHONPATH variables are set.

Steps to reproduce

./OTB-6.6.0-Linux64.run
Creating directory OTB-6.6.0-Linux64
Verifying archive integrity...  100%   All good.
Uncompressing OrfeoToolBox 6.6.0  100%  
OTB python bindings will be configured for /usr/bin/python ( version: 2.7.13 )
Found python library: /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
not an ELF executable

Configuration information

Debian Stretch, OTB-6.6.0

Edited by Jordi Inglada