scheme shell

From: "Alexander Vasic" <>
Subject: Re: 0.6.2 Build problems on cygwin
Newsgroups: comp.lang.scheme.scsh
Date: Tue, 2 Jul 2002 21:25:22 +0200
X-Sent: 12 hours, 5 minutes, 46 seconds in the future
Organization: TISCALI FRANCE

> Okay, your configure script finished without problems.
>  > Here is the error I get...
>  > $ make
>  > [...]
>  > build/build-usual-image . "`pwd`/scheme" 'scheme48.image' './scshvm' \
>  >         'build/initial.image'
>  > Premature EOF when reading image file
>  > Image file "build/initial.image" is unusable.
>  > make: *** [scheme48.image] Error 1
> Your build/initial.image is corrupt. Try to get a new copy from the
> tarball.
> --
> Martin

I had the same problem (premature EOF while reading image). Run cygwin's
again and choose UNIX line ending convention instead of DOS convention.

scsh 0.6.2 builds and runs fine under cygwin/win2k.

And since we are speaking about CRL/LF problems: If you are doing CGI
with SCSH, your #! ... !# section should also follow the UNIX line ending
convention - at least
if you are using Xitami as http server (I had that problem too...).

example: (from head, may not be quite accurate)

#!/usr/local/bin/scsh \
-lm /usr/etc/scsh/sunet/modules.scm -dm my-script -e main -s
(define-structure my-script
   (export main)

But the rest of the script source does not require UNIX line breaks.

I hope it helps.

PS: I wanted to reply to this newsgroup but pushed the wrong button. Sorry.