[plt-scheme] web-server servlet components not reloading

From: Daniel Silva (dansilva at lynx.dac.neu.edu)
Date: Thu Aug 15 18:04:43 EDT 2002

Aaaahhhhh I'm retarded!
Sorry, found the problem... ran this cgi script:

#! /bin/sh
echo Content-Type: text/plain
echo
echo running scheme
./plt/bin/mzscheme -mvqe '(printf "test~n")' 2>&1

and got this on the web browser:

running scheme
./plt/bin/mzscheme: error while loading shared libraries:
libmzscheme.so.0: cannot open shared object file: No such file or
directory

so then I tried this:

[kublai at www cgi-bin]$ ls plt/lib -l 
total 6000
-rw-r--r--    1 kublai   site378       116 Aug 11 10:31 buildinfo
-rw-r--r--    1 kublai   site378    626678 Aug 11 10:31 libmzgc.a
-rw-r--r--    1 kublai   site378       710 Aug 11 10:31 libmzgc.la
lrwxrwxrwx    1 kublai   site378        16 Aug 11 10:31 libmzgc.so ->
libmzgc.so.0.0.0
lrwxrwxrwx    1 kublai   site378        16 Aug 11 10:31 libmzgc.so.0 ->
libmzgc.so.0.0.0
-rwxr-xr-x    1 kublai   site378    308262 Aug 11 10:31 libmzgc.so.0.0.0
-rw-r--r--    1 kublai   site378   3423034 Aug 11 10:31 libmzscheme.a
-rw-r--r--    1 kublai   site378       734 Aug 11 10:31 libmzscheme.la
lrwxrwxrwx    1 kublai   site378        20 Aug 11 10:31 libmzscheme.so
-> libmzscheme.so.0.0.0
lrwxrwxrwx    1 kublai   site378        20 Aug 11 10:31 libmzscheme.so.0
-> libmzscheme.so.0.0.0
-rwxr-xr-x    1 kublai   site378   1716589 Aug 11 10:31
libmzscheme.so.0.0.0
-rw-r--r--    1 kublai   site378     29964 Aug 11 10:31 mzdyn.o



removed the entire plt dir and recompiled with --disable-mred (as
before) and this time without the flag --enable-dynlib
and now it works!  sorry :\

this is the cgi script that executes fine now (didn't need to set
PLTHOME either):

#! /bin/sh
string=? ; exec plt/bin/mzscheme -r $0 2>&1


(require (lib "cgi.ss" "net")
         "welcome-content.scm"
         "xexpr-utils.scm")   
         
(define (main)
  (begin
    (output-http-headers)
    (xwrite (welcome-content '(("Home" "/"))))))
    
(main)




Posted on the users mailing list.