[Larceny-users] Error running an external program

William D Clinger will at ccs.neu.edu
Mon Sep 28 14:51:40 EDT 2015


> But when I try to run it as a stand-alone script, following the
> directions in the Larceny User Manual (3.2. R6RS mode), it fails:
> 
>     C:\Users\User\Documents\Programmes\Scheme\Larceny>larceny -r6rs
>     -program hello
> 
>     Error: no handler for exception #<record &compound-condition>
>     Compound condition has these components:
>     #<record &error>
>     #<record &who>
>          who : "Could not locate library: "
>     #<record &assertion>
>     #<record &who>
>          who : make-message-condition
>     #<record &irritants>
>          irritants : (r6rsmode)
>     #<record &irritants>
>          irritants : ()
> 
>     Terminating program execution.
> 
>     C:\Users\User\Documents\Programmes\Scheme\Larceny>
> 
> Where have I gone wrong?

Does it work when you specify the program as hello.scm instead of
just hello?

I suspect that's what went wrong.  The error message wasn't as
helpful as it should have been because it failed to list the name
of the library/program it couldn't find; we should fix that.

Will



More information about the Larceny-users mailing list