Thank you for the post.
Recently I got a new Dell Latitude E6410 and installed Ubuntu 10.10 x86_64. After data migration (easy shot using tar & netcat & untar ^^), I found the LDOCE5 setup script doesn't work on 64-bit Linux due to the same error.
Your tip really helped to work around the issue
I just copied the linux and ldoce5.data folder to the HDD and renamed the ldoce5/linux/setup.data/bin/x86 to amd64 and it worked.
I've been stuck with uninstalling ldoce5 on one of my arch linux installation with error "Could not find a usable uninstall program. Aborting." I did something similar, looked into the uninstall scripts in the installation folder and was able to manually uninstall completely.
It's the same path construction problem.
Code:
if which loki-uninstall 2> /dev/null > /dev/null || type -p loki-uninstall 2> /dev/null > /dev/null; then
UNINSTALL=loki-uninstall
else
UNINSTALL="$HOME/.loki/installed/bin/`DetectOS`/`DetectARCH`/uninstall"
if test ! -x "$UNINSTALL" ; then
echo Could not find a usable uninstall program. Aborting.
exit 1
fi
fi
"$UNINSTALL" -L ldoce5 "/usr/local/ldoce5/.manifest/ldoce5.xml" "$1"
This /usr/local/ldoce5/.manifest/scripts/preun.sh can be used as reference to manually uninstall ldoce5.
I have to say LDOCE5 rocks, works perfectly on all OS (Mac, Linux and Windows), unified UI (thanks to Mozilla framework). But some minor issues with their scripts LOL
Bookmarks