- This topic has 2 replies, 2 voices, and was last updated 19 years, 4 months ago by
Scott Anderson.
-
AuthorPosts
-
Brian WallisMemberI have a problem with the installer for 4.0.2. I have seen this on earlier releases as well.
I am running it on a Gentoo linux system. Kernel is 2.6.9, glibc is 2.3.5 and sh is bash 3.00.16. The problem is not fatal and just causes the diskspace check to fail. The initial output from running it with LAX_DEBUG set follows. Line 327 in the script has an unprotected variable used with test -z which is a bad idea since it causes a shell syntax error if the variable is not set, the variable should be in quotes! The line 327:
> if [ ! \( -z $AVAIL_SPACE -o -z $NEEDED_SPACE \) ]; then
should be:
> if [ ! \( -z “$AVAIL_SPACE” -o -z “$NEEDED_SPACE” \) ]; thenThe real problem seems to be the usage of df and tail in calculating the disk space. Not sure what is going wrong there, the variable AVAIL_SPACE is ending up empty.
> flatcat% LAX_DEBUG=1 sh ~/packages/Eclipse/EnterpriseWorkbenchInstaller_4.0.2GA_E3.1.bin
> Preparing to install…
> Checking for POSIX df.
> Found POSIX df.
> True location of the self extractor: /home/brianw/packages/Eclipse/EnterpriseWorkbenchInstaller_4.0.2GA_E3.1.bin
> Creating installer data directory: /tmp/install.dir.12814
> Creating installer data directory: /tmp/install.dir.12814/InstallerData
> Gathering free-space information…
> Space needed to complete the self-extraction: 235352 blocks
> tail: `-1′ option is obsolete; use `-n 1′ since this will be removed in the future
> Try `tail –help’ for more information.
> Available space: blocks
> Available blocks: Needed blocks: 235352 (block = 512 bytes)
> /home/brianw/packages/Eclipse/EnterpriseWorkbenchInstaller_4.0.2GA_E3.1.bin: line 327: [: `)’ expected, found -z
> WARNING! The amount of /tmp disk space required and/or available
> could not be determined. The installation will be attempted anyway.
Brian WallisMemberForgot to mention, the installer installs myeclipse OK after the error is printed.
Scott AndersonParticipantThanks for bringing this to our attention. We’ll file the bug with ZeroG as the script is actually part of InstallAnywhere.
-
AuthorPosts