From: "Jonathan Hayward http://JonathansCorner.com" <christos.jonathan.hayward@gmail.com>
To: caml-list@yquem.inria.fr
Subject: CGI wants Netmime
Date: Fri, 14 Jul 2006 14:17:31 -0400 [thread overview]
Message-ID: <fdc31b650607141117s6837fbe7s37a20e903d352c42@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2006-07-14 18:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fdc31b650607141117s6837fbe7s37a20e903d352c42@mail.gmail.com \
--to=christos.jonathan.hayward@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox