Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Adding libraries to mod_caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <mgushee@h...>
Subject: Re: [Caml-list] Adding libraries to mod_caml
On Thu, Apr 15, 2004 at 10:00:07AM +0100, Richard Jones wrote:
> On Wed, Apr 14, 2004 at 02:42:57PM -0600, Matt Gushee wrote:
> > Ah! Well, that's a start. But now when I restart Apache, I get:
> > 
> >   Failure("error while linking /opt/ocaml/lib/site-lib/ocre/ocre.cma")
> >   Undefined global 'Stream'.
> I'm not really familiar with Stream.  Is that included in the standard
> library (ie. stdlib.cma)?

Oh, yes. That's why I made that facetious remark about CamlLoading the
standard library.

> I'm not sure why the ALL_CMAS trick you mention in your original
> posting doesn't work.  Perhaps you didn't install the new version of
> mod_caml or restart Apache?

The above error was triggered by restarting Apache. However, I was in
fact not using the latest version (it was 1.0.6). I must confess I have
this semi-philosophical, semi-emotional resistance to *blindly*
upgrading things in the hope that it will fix the problem of the moment.
But if you think it will help I'll try it.

On Thu, Apr 15, 2004 at 11:34:47AM +0200, Basile Starynkevitch wrote:
> There is a Stream module inside the standard library. It is mostly
> useful when using the stream syntactic extension (provided by camlp4).

Almost true, but not quite: we are specifically admonished *not* to use
Stream module streams (e.g. Stream.of_string "abcde") with literal
streams ([< 'foo; 'bar >])--which limits the usefulness of the Stream
module. But it can be helpful for tasks that involve scanning a string

Many thanks to all who responded. I'll report back after trying the
latest mod_caml.

Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through           its fields;   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                            --Lao Tzu (Peter Merel, trans.)

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: