[plt-scheme] finding the right version of libraries

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Apr 8 21:19:48 EDT 2005

Have you tried unsetting your PLTHOME variable before you run your 
shell script? -- Matthias

On Apr 8, 2005, at 8:29 PM, Phil Windley wrote:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> I've got a scheme program that I want to eventually run as a shell 
> script.  I'm using 299.100 and have the following at the top of the 
> file:
> #!/usr/local/plt/bin/mzscheme -r
> (require (lib "smtp.ss" "net")
>          (lib "head.ss" "net")
>          (lib "xml.ss" "xml")
>          (lib "match.ss")
>          (lib "pregexp.ss"))
> When I start mzscheme as /usr/local/plt/bin/mzscheme (the same command 
> as above) and load this file with (load "..."), it runs perfectly, but 
> when I run it as a script (i.e. just execute it from the shell 
> prompt), I get
> /Applications/PLT Scheme v208/collects/net/compiled/smtp.zo: read 
> (compiled): code compiled for version 208, not 299.100
> I think, I could solve this problem by uninstalling v208, but I've got 
> two lectures left this term and would rather not chance the version 
> change at this point.  Besides, I think there's something I need to 
> learn here.
> What's going on?
> --phil--

Posted on the users mailing list.