caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johann Spies <jspies@maties.sun.ac.za>
To: ocaml mailing list <caml-list@inria.fr>
Subject: Re: [Caml-list] How to use pcre (2)
Date: 06 Sep 2001 16:21:38 +0200	[thread overview]
Message-ID: <87sne0jt71.fsf_-_@bywoner.sun.ac.za> (raw)
In-Reply-To: Markus Mottl's message of "Thu, 6 Sep 2001 15:29:58 +0200"

I suspect there is something wrong with my installation.  I have
compiled pcre in /usr/local/src and put the following files in
/usr/local/lib/ocaml:

libpcre.a
pcre.a
pcre.cma
pcre.cmi
pcre.cmxa
pcre.mli

Working on Debian Linux, that did not work.  So I symlinked all those
files to /usr/lib/ocaml.  Then I could open pcre in the toplevel.  But
there is something else wrong here.

Trying Markus' solution I came across the following new problem
regarding pcre both in the toplevel and when I try to compile it:

-------------------------
$ ocaml
        Objective Caml version 3.01

# let s = "abcde";;
let s = "abcde";;
val s : string = "abcde"
# let t = Pcre.replace ~pat:"d" ~templ:"D" s;;
let t = Pcre.replace ~pat:"d" ~templ:"D" s;;
Reference to undefined global `Pcre'

---------------------
$ ocaml
        Objective Caml version 3.01

# open Pcre;;
open Pcre;;
# let s = "abcde";;
let s = "abcde";;
val s : string = "abcde"
#   let t = replace ~pat:"d" ~templ:"D" s;;
  let t = replace ~pat:"d" ~templ:"D" s;;
Reference to undefined global `Pcre'
----------------------------------

I tried to compile the file in which I want to use this type of
function with

ocamlfind ocamlopt -o v1 -package postgres,threads -thread -linkpkg
v3.ml
-------------
No implementations provided for the following modules:
  Pcre referenced from v3.cmx
------------
and also with 
ocamlfind ocamlopt -o v1 -package postgres,pcre,threads -thread
-linkpkg v3.ml
-----------
ocamlfind: package 'pcre' not found
------------
There was no META file in the pcre-sources. How do I go forward from
here? 


Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Behold, I stand at the door, and knock; if any man 
      hear my voice, and open the door, I will come in to 
      him, and will sup with him, and he with me."       
                                   Revelation 3:20 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  parent reply	other threads:[~2001-09-06 14:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-06 13:03 [Caml-list] How to use pcre Johann Spies
2001-09-06 13:29 ` Markus Mottl
2001-09-06 13:44   ` Johann Spies
2001-09-06 14:21   ` Johann Spies [this message]
2001-09-06 14:45     ` [Caml-list] How to use pcre (2) Markus Mottl
2001-09-06 19:51       ` [Caml-list] How to use pcre (3) Johann Spies
2001-09-06 21:12         ` Nicolas George
2001-09-06 21:23         ` Markus Mottl
2001-09-07  6:59           ` Johann Spies
2001-09-06 21:28         ` Gerd Stolpmann
2001-09-06 21:55           ` Markus Mottl
2001-09-06 22:14           ` Alain Frisch

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=87sne0jt71.fsf_-_@bywoner.sun.ac.za \
    --to=jspies@maties.sun.ac.za \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).