I modified the script as follows:
Code:
#!/bin/sh
# path=`readlink -e $0`
# base=`dirname $path`
# lib=$base/lib
base=/opt/calibre
lib=/opt/calibre/lib
export LD_LIBRARY_PATH=$lib:$LD_LIBRARY_PATH
export MAGICK_HOME=$base
export MAGICK_CONFIGURE_PATH=$lib/ImageMagick-6.6.7/config
export MAGICK_CODER_MODULE_PATH=$lib/ImageMagick-6.6.7/modules-Q16/coders
export MAGICK_CODER_FILTER_PATH=$lib/ImageMagick-6.6.7/modules-Q16/filters
# $base/bin/calibre "$@"
/opt/calibre/bin/calibre "$@"
Then I get the following error:
Code:
DiskStation> /opt/calibre/calibre --help
/opt/calibre/bin/calibre: /opt/calibre/lib/libc.so.6: version `GLIBC_2.4' not found (required by /opt/calibre/lib/libpython2.7.so.1.0)
I have GLIBC 2.3.6 in the device. And the instruction says Calibre needs 2.1 or above. Please suggest me which version of Calibre supports 2.3.6. Thank you.