'Python' & $TAPE issues on FC4 install (solved)
Posted: Fri Jun 02, 2006 11:13 am
Whilst trying to do a test upgrade to 10.0.1 on a VMware setup I encountered the dreaded "Build does not contain version for the version of Python installed" error &, bizarrely, errors about /dev/nst0.
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:
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:
Note with either of these the installer still gave the following errors:
Nevertheless, the installation then proceeded without problems for me.
Hope this helps someone.
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.