[ELDK] 5.8 install fails on Debian
Thomas Lange
thomas at corelatus.se
Thu Feb 11 17:20:05 CET 2016
Hi,
installing 5.8 on Debian (Jessie) fails:
--------
root at k33:/mnt/loop# ./install.sh -r lsb-sdk -s toolchain
*** Installing ./targets/armv7a-hf/eldk-glibc-i686-arm-toolchain-5.8.sh
into /opt/eldk-5.8/armv7a-hf
./targets/armv7a-hf/eldk-glibc-i686-arm-toolchain-5.8.sh: 72: read:
Illegal option -e
--------
The reason seems to be:
1. install.sh uses 'sh' to run the toolchain shell script:
${DRY_RUN} sh ${shar} >/dev/null || exit 1
On Debian, 'sh' means 'dash' (https://wiki.debian.org/Shell).
2. eldk-glibc-i686-arm-toolchain-5.8.sh doesn't work with dash.
Workarounds that seems to work for me:
A) ${DRY_RUN} bash ${shar} >/dev/null || exit 1
B) ${DRY_RUN} ./${shar} >/dev/null || exit 1
Regards,
/Thomas
More information about the eldk
mailing list