When installing Gentoo/Interix on Windows seven, the setup script fail while trying to get file gentoo-bin-6.1-.tar.gz through ftp. The cause of this is that Interix 6.1 in undefined at lines 34-38 from the cd Scripts/install.sh Reproducible: Always Steps to Reproduce: 1. Launch the setup script on windows seven (interix 6.1) 2. 3. Actual Results: The setup fail to install anything Expected Results: The setup should allow the user to select other snapshot, or at least to fix the snapshot file name for ftp fetch. On my system, I edited the install script as follows to provide that functionnality. It is not intended to be used as is, but this may help to understand how I feel the script could be improved: replaced lines 34-38 with SelectSnapshotVersion() { Versions=3 InterixVersions[0]=3.5 InterixWindows[0]="Windows XP" SnapshotDates[0]=20090309 InterixVersions[1]=5.2 InterixWindows[1]="Windows Server 2003" SnapshotDates[1]=20090309 InterixVersions[2]=6.0 InterixWindows[2]="Windows Vista" SnapshotDates[2]=20090309 i=0 while [ $i -lt $Versions ]; do if [ "${InterixVersions[$i]}" = "${InterixVersion}" ]; then SnapshotDate=${SnapshotDates[$i]} fi ((i=i+1)) done while [ -z "${SnapshotDate}" ]; do echo "A snapshot corresponding to your system could not be found. You can either: " echo "1- Try to download the latest snapshot [not available yet]" i=0 while [ $i -lt $Versions ]; do echo "$((i+2))- Use Interix ${InterixVersions[$i]} snapshot (${InterixWindows[$i]})" ((i=i+1)) done echo "Your choice [1]: " read Snapshot if [ "$Snapshot" = "1" -o -z "$Snapshot" ]; then SnapshotDate="latest" else ((Snapshot=Snapshot-2)) fi if [ $Snapshot -ge 0 -a $Snapshot -lt $Versions ]; then SnapshotDate=${SnapshotDates[$Snapshot]} InterixVersion=${InterixVersions[$Snapshot]} fi done } SelectSnapshotVersion This is called in the script.
hey, thanks for reporting. the idea is good, but there is one problem: there are no snapshots available for download :( there are just the CD images, which bundle one single snapshot on it, and are intended for exactly one interix version. right now, there is nothing for windows se7en yet, although i tried to install things from the 6.0 (vista) snapshots (which seems to work). as a first go, you could copy the contents of the "Data" dir to your harddisk, rename the gentoo-bin-.....tar.gz to what he's looking for, and start setup.exe. you'll however have to download and install SUA SDK from the microsoft homepages manually _before_ doing that. otherwise the vista sdk will get installed, and that may damage your system. (at the sua sdk install, don't forget to install the "GNU SDK", otherwise there will be no linker, which the prefix compiler needs from the system) the thing with the download code is, that this is unmaintained for quite a while now. it doesn't make too much sense anyway, since the interix version bundled on the CD has to match the windows and snapshot versions anyway. i'll have a look at creating dedicated windows se7en CD's as soon as it is released (or at least the first RC is released. my beta 1 VM is so sloooow :)).
(In reply to comment #1) Thank you for you quick reply! > hey, thanks for reporting. the idea is good, but there is one problem: there > are no snapshots available for download :( Indeed, but at least, that let me chose the 6.0 from the disk :-) > you'll however have to download and install SUA SDK from the > microsoft homepages manually _before_ doing that. otherwise the vista sdk will > get installed, and that may damage your system. (at the sua sdk install, don't > forget to install the "GNU SDK", otherwise there will be no linker, which the > prefix compiler needs from the system) Erm... I didn't find a se7en specific version, so I thought "The one bundled on the CD should be the same" (And actually, as far as I can tell it seems to be working). Is there anything I am missing ? > the thing with the download code is, that this is unmaintained for quite a > while now. it doesn't make too much sense anyway, since the interix version > bundled on the CD has to match the windows and snapshot versions anyway. I get the point. Anyway, I believe the installer should at least tell the user "No snapshot available for your version, the installer can't continue; read [documentation/url] for more details.". That way, the installer would not break unexpectingly with newer SUA releases (and users would not need to try learning shell scripting to understand what is going wrong ;) ).
(In reply to comment #2) > (In reply to comment #1) [snip] > Erm... I didn't find a se7en specific version, so I thought "The one bundled on > the CD should be the same" (And actually, as far as I can tell it seems to be > working). Is there anything I am missing ? quoting http://www.suacommunity.com/forum/tm.aspx?m=16175: "I got information from Microsoft: "The SDK package release is not planned before Win 7 RC"" so my fault :) this will most probably contain some updated tools, etc. but thats irrelevant anyway, since gentoo should provide all this :) [snip] > I get the point. Anyway, I believe the installer should at least tell the user > "No snapshot available for your version, the installer can't continue; read > [documentation/url] for more details.". That way, the installer would not break > unexpectingly with newer SUA releases (and users would not need to try learning > shell scripting to understand what is going wrong ;) ). of course you have a point here :) i added this (will be present in the next setup CD images, which may take weeks/months/...) ;) : 161 if [ "${NeedDownload}" = "yes" ]; 162 # download logic not present anymore. 163 msg "" 164 msg "ERROR: cannot find a suitable snapshot file for your windows version." 165 msg "This means, that there is currently no support for this windows version." 166 msg "You may be able to force installation, for reference take a look at the" 167 msg " following URL: http://bugs.gentoo.org/show_bug.cgi?id=262065" 168 msg "" 169 exit 1 170 fi