* Building PCRE-OCaml on Win32
@ 2005-10-27 19:54 Roger Levy
2005-10-27 19:58 ` [Caml-list] " Gerd Stolpmann
2005-10-27 20:16 ` Peter Jolly
0 siblings, 2 replies; 6+ messages in thread
From: Roger Levy @ 2005-10-27 19:54 UTC (permalink / raw)
To: caml-list
I'm having difficulty installing PCRE-OCaml in my Cygwin OCaml
installation. I have the packages OCaml 3.08.1-1, libpcre 6.3-1, and
pcre 6.3-1 all from a default recent Cygwin installation, so it seems to
me that I should be able to install PCRE-OCaml (I'm getting the most
recent version, 5.10.1) straight away. Here is what I get, though:
=====
/tmp/pcre-ocaml-5.10.1 $ make
[everything succeeds, though there is one warning:
pcre_stubs.c:1: warning: -fPIC ignored for target (all code is position
independent)
]
/tmp/pcre-ocaml-5.10.1 $ make install
make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
Installing library with ocamlfind
ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
libpcre_stubs.a dllpcre_stubs.so
ocamlfind: Package pcre is already installed; please remove it first -
(directory /usr/lib/ocaml/site-lib/pcre already exists)
make[1]: *** [libinstall] Error 2
make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
make: *** [install] Error 2
=====
If I try to uninstall, however, I get the following problem:
=====
/tmp/pcre-ocaml-5.10.1 $ make uninstall
make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
Uninstalling library with ocamlfind
ocamlfind remove pcre
ocamlfind: Package `pcre' not found
make[1]: *** [libuninstall] Error 2
make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
make: *** [uninstall] Error 2
=====
Now, the directory /usr/lib/ocaml/site-lib/pcre is actually empty; if I
delete it and try to install, the following happens:
=====
$ make install
make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
Installing library with ocamlfind
ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
libpcre_stubs.a dllpcre_stubs.so
ocamlfind: dllpcre_stubs.so: No such file or directory
make[1]: *** [libinstall] Error 2
make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
make: *** [install] Error 2
=====
Any suggestions? I really hate using the str library for regular
expressions, since it has global state.
I notice that Brian Donovan asked the same thing (though he was trying
to install it using the MSVC and Win32 makefiles, both of which failed)
about 18 months ago, and didn't seem to get a satisfactory reply!
http://caml.inria.fr/pub/ml-archives/caml-list/2004/05/55a1a6ea9c641248fdc4da86e52f58b9.en.html
Many thanks in advance for any help!
Best,
Roger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Building PCRE-OCaml on Win32
2005-10-27 19:54 Building PCRE-OCaml on Win32 Roger Levy
@ 2005-10-27 19:58 ` Gerd Stolpmann
2005-10-27 20:06 ` Roger Levy
2005-10-27 20:16 ` Peter Jolly
1 sibling, 1 reply; 6+ messages in thread
From: Gerd Stolpmann @ 2005-10-27 19:58 UTC (permalink / raw)
To: Roger Levy; +Cc: caml-list
Also look into /usr/lib/ocaml/site-lib/stublibs and delete the
PCRE-related DLL files.
Gerd
Am Donnerstag, den 27.10.2005, 20:54 +0100 schrieb Roger Levy:
> I'm having difficulty installing PCRE-OCaml in my Cygwin OCaml
> installation. I have the packages OCaml 3.08.1-1, libpcre 6.3-1, and
> pcre 6.3-1 all from a default recent Cygwin installation, so it seems to
> me that I should be able to install PCRE-OCaml (I'm getting the most
> recent version, 5.10.1) straight away. Here is what I get, though:
>
> =====
>
> /tmp/pcre-ocaml-5.10.1 $ make
> [everything succeeds, though there is one warning:
> pcre_stubs.c:1: warning: -fPIC ignored for target (all code is position
> independent)
> ]
>
> /tmp/pcre-ocaml-5.10.1 $ make install
> make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
>
> Installing library with ocamlfind
> ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
> libpcre_stubs.a dllpcre_stubs.so
> ocamlfind: Package pcre is already installed; please remove it first -
> (directory /usr/lib/ocaml/site-lib/pcre already exists)
> make[1]: *** [libinstall] Error 2
> make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
> make: *** [install] Error 2
>
> =====
>
> If I try to uninstall, however, I get the following problem:
>
> =====
>
> /tmp/pcre-ocaml-5.10.1 $ make uninstall
> make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
>
> Uninstalling library with ocamlfind
> ocamlfind remove pcre
> ocamlfind: Package `pcre' not found
> make[1]: *** [libuninstall] Error 2
> make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
> make: *** [uninstall] Error 2
>
> =====
>
> Now, the directory /usr/lib/ocaml/site-lib/pcre is actually empty; if I
> delete it and try to install, the following happens:
>
> =====
>
> $ make install
> make[1]: Entering directory `/tmp/pcre-ocaml-5.10.1/lib'
>
> Installing library with ocamlfind
> ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
> libpcre_stubs.a dllpcre_stubs.so
> ocamlfind: dllpcre_stubs.so: No such file or directory
> make[1]: *** [libinstall] Error 2
> make[1]: Leaving directory `/tmp/pcre-ocaml-5.10.1/lib'
> make: *** [install] Error 2
>
> =====
>
> Any suggestions? I really hate using the str library for regular
> expressions, since it has global state.
>
> I notice that Brian Donovan asked the same thing (though he was trying
> to install it using the MSVC and Win32 makefiles, both of which failed)
> about 18 months ago, and didn't seem to get a satisfactory reply!
>
> http://caml.inria.fr/pub/ml-archives/caml-list/2004/05/55a1a6ea9c641248fdc4da86e52f58b9.en.html
>
> Many thanks in advance for any help!
>
> Best,
>
> Roger
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
--
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
Telefon: 06151/153855 Telefax: 06151/997714
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Building PCRE-OCaml on Win32
2005-10-27 19:58 ` [Caml-list] " Gerd Stolpmann
@ 2005-10-27 20:06 ` Roger Levy
0 siblings, 0 replies; 6+ messages in thread
From: Roger Levy @ 2005-10-27 20:06 UTC (permalink / raw)
To: caml-list
Gerd Stolpmann wrote:
> Also look into /usr/lib/ocaml/site-lib/stublibs and delete the
> PCRE-related DLL files.
Hmm...I don't even have a /usr/lib/ocaml/site-lib/stublibs directory!
Do you mean /usr/lib/ocaml/stublibs? That directory is empty; removing
it doesn't change the error messages that I get with make install.
Thanks though...
Roger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Building PCRE-OCaml on Win32
2005-10-27 19:54 Building PCRE-OCaml on Win32 Roger Levy
2005-10-27 19:58 ` [Caml-list] " Gerd Stolpmann
@ 2005-10-27 20:16 ` Peter Jolly
2005-10-27 21:30 ` Roger Levy
2005-11-08 2:44 ` Igor Pechtchanski
1 sibling, 2 replies; 6+ messages in thread
From: Peter Jolly @ 2005-10-27 20:16 UTC (permalink / raw)
To: Roger Levy; +Cc: caml-list
Roger Levy wrote:
> Installing library with ocamlfind
> ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
> libpcre_stubs.a dllpcre_stubs.so
> ocamlfind: dllpcre_stubs.so: No such file or directory
This is your problem. It is attempting to install a .so file, which
_cannot_ exist, since (a) Cygwin uses .dll for shared libraries rather
than .so, and (b) the Cygwin port of OCaml does not support shared
libraries in any case.
Rebuild PCRE for static linking only, and it should install happily.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Building PCRE-OCaml on Win32
2005-10-27 20:16 ` Peter Jolly
@ 2005-10-27 21:30 ` Roger Levy
2005-11-08 2:44 ` Igor Pechtchanski
1 sibling, 0 replies; 6+ messages in thread
From: Roger Levy @ 2005-10-27 21:30 UTC (permalink / raw)
To: caml-list
Peter Jolly wrote:
> Roger Levy wrote:
>
>>Installing library with ocamlfind
>>ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
>>libpcre_stubs.a dllpcre_stubs.so
>>ocamlfind: dllpcre_stubs.so: No such file or directory
>
>
> This is your problem. It is attempting to install a .so file, which
> _cannot_ exist, since (a) Cygwin uses .dll for shared libraries rather
> than .so, and (b) the Cygwin port of OCaml does not support shared
> libraries in any case.
>
> Rebuild PCRE for static linking only, and it should install happily.
Thank you! This worked. (FWIW: I did this by uncommenting the line
export STATIC = yes
in the top-level Makefile.conf)
I don't understand how to refer to the pcre module with ocamlc or the
toplevel, but I suspect this is more of a newbie question so I'm moving
it into the caml-beginnners list.
Many thanks.
Roger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Building PCRE-OCaml on Win32
2005-10-27 20:16 ` Peter Jolly
2005-10-27 21:30 ` Roger Levy
@ 2005-11-08 2:44 ` Igor Pechtchanski
1 sibling, 0 replies; 6+ messages in thread
From: Igor Pechtchanski @ 2005-11-08 2:44 UTC (permalink / raw)
To: Peter Jolly; +Cc: Roger Levy, caml-list
On Thu, 27 Oct 2005, Peter Jolly wrote:
> Roger Levy wrote:
> > Installing library with ocamlfind
> > ocamlfind install pcre META pcre.mli pcre.cmi pcre.cma pcre.cmxa pcre.a
> > libpcre_stubs.a dllpcre_stubs.so
> > ocamlfind: dllpcre_stubs.so: No such file or directory
>
> This is your problem. It is attempting to install a .so file, which
> _cannot_ exist, since (a) Cygwin uses .dll for shared libraries rather
> than .so, and (b) the Cygwin port of OCaml does not support shared
> libraries in any case.
>
> Rebuild PCRE for static linking only, and it should install happily.
FWIW, the experimental 3.08.1-2 version of ocaml on Cygwin does support
shared libraries (at least to the extent of allowing loading them from the
top-level). I'm slowly working towards adding full shared library support
so that all tools do the right thing when building packages.
Igor Pechtchanski
Volunteer O'Caml maintainer for Cygwin
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-08 2:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-27 19:54 Building PCRE-OCaml on Win32 Roger Levy
2005-10-27 19:58 ` [Caml-list] " Gerd Stolpmann
2005-10-27 20:06 ` Roger Levy
2005-10-27 20:16 ` Peter Jolly
2005-10-27 21:30 ` Roger Levy
2005-11-08 2:44 ` Igor Pechtchanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox