On Fri, Oct 7, 2011 at 11:25 AM, Lucas Dixon <[email protected]> wrote:
> If you've installed polyml in a non-standard location, e.g. I have it in
> /Users/ldixon/local/polyml-5.4, then you need to also setup the library
> path appropriately, e.g.
>
> export POLYML_PATH="/Users/ldixon/local/polyml-5.4"
> export POLYML_LIB="${POLYML_PATH}/lib"
> export LD_RUN_PATH="${POLYML_LIB}:${LD_RUN_PATH}"
> cc -o empty-top-level-poly noprint-poly.o -L${POLYML_LIB} -lpolymain
> -lpolyml

Thank you!

I finally got my first CGI program in SML works successfully! Here it
is what I did:

,----------------------------------------------------------
(* a file named Hello placed under the cgi-bin directory of the apache
web server *)

print("Content-Type: text/plain");
print("\n\n");

print("Hello, Poly/ML!");
`---------------------------------------------------------

Then created a program in sml named hello.sml with just the following two lines
(note that give it with the execute rights under Unix):

,---------------------------------------------------------
#! /bin/sh
":"; exec /home/hf/empty-top-level-poly -q  < Hello
`---------------------------------------------------------

After done it, started the web browser to load it to run:

http://www.supernovas.cn/cgi-bin/hello.sml

Best,
Hong
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to