I eventually realised that I have the $TAPE environment variable set and this was causing tar to ignore stdin & try to extract the file from the tape drive. The solution was therefore to unset the $TAPE variable, or better still, tweak line 124 of the scalix-installer script so it looks like:
Code: Select all
tail +$SKIP $0 | tar xzmf - -C "$WRKDIR"
The version below should also fix Python errors resulting from new versions of 'tail' that don't have the skip option. Mwarfield gave a very big hint on this one here:
http://www.scalix.com/community/viewtop ... ght=python
But here's a solution in full:
Code: Select all
sed -e '1,/^__ARCHIVE_FOLLOWS__/d' $0 | tar xzmf - -C "$WRKDIR"
Note with either of these the installer still gave the following errors:
Code: Select all
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Nevertheless, the installation then proceeded without problems for me.
Hope this helps someone.