* CGI wants Netmime
@ 2006-07-14 18:17 Jonathan Hayward http://JonathansCorner.com
0 siblings, 0 replies; only message in thread
From: Jonathan Hayward http://JonathansCorner.com @ 2006-07-14 18:17 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
I'm trying to get my script working via cgi instead of netcgi, and I now
have:
#!/usr/bin/ocamlrun ocaml
#directory "/usr/lib/ocaml/3.08.3/cgi/";;
#load "cgi.cma";;
let () =
let params = Cgi.parse_args () in
Cgi.header "text/plain";
try
match int_of_string (List.assoc "foo" params) with
| 1 -> print_endline "Yes"
| _ -> print_endline "No"
with
| Not_found -> print_endline "'foo' not found"
| exn -> print_endline "Error parsing 'foo'";;
When I run it, I get:
root@inner-sanctum:~/public_html/ml# ./helloweb.ml
Reference to undefined global `Netmime'
What do I need to do next? If it's another package I need to install, what's
a name aptitude will recognize or else what's a URL I can download from?
Thanks, and thanks to Jonathan for help,
--
++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
** If you'd like a Google Mail (gmail.com) account, please tell me!
[-- Attachment #2: Type: text/html, Size: 1495 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-14 18:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-14 18:17 CGI wants Netmime Jonathan Hayward http://JonathansCorner.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox