[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: require-library in a standalone Mzscheme script.
wow! Its working now.
The actual problem was this:
I was running mzscheme as an alias in the bash shell.
{My config: NT 4.0 SP4, DrScheme 101, VC++ 6 SP3, Cygnus b21}
I had an alias like this
alias mzm='"//C/Program Files/PLT/MzScheme.exe"'
All this time, I was running it as "mzm -r foo.scm".
It failed with "require-library: collection not found: "mzlib" in any of:
()".
When I run it as "mzscheme -r foo.scm"
it works like a charm :-)
Thanks for all the tips.
pj
> -----Original Message-----
> From: Matthias Felleisen [mailto:matthias@cs.rice.edu]
> Sent: Tuesday, December 28, 1999 8:52 PM
> To: duraip@extendsys.com
> Cc: plt-scheme@fast.cs.utah.edu
> Subject: Re: require-library in a standalone Mzscheme script.
>
>
>
> I tried three things:
>
> 1. In DrScheme
> language: MzScheme
> def wind:
> (require-library "file.ss")
> execute
>
> 2. In MzScheme
>
> europa.rice.edu 1> mzscheme
> Welcome to MzScheme version 101, Copyright (c) 1995-99 PLT
> (Matthew Flatt)
> > (require-library "file.ss")
> >
>
> 3. In MzScheme -r:
>
> create foo.ss:
> (require-library "file.ss")
> (printf "hello world~n")
>
> then
>
> europa.rice.edu 3> mzscheme -r foo.ss
> hello world
> europa.rice.edu 4>
>
> All three behave identically (require-library's evaluation terminates,
> and the next expression is okay). Could you describe your
> problem in more
> detail?
>
> -- Matthias
>