[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ocaml-ldconf problems on Woody



Hi


PROBLEM 1:

After I add

/usr/local/lib/ocaml
/usr/local/lib/ocaml/contrib

to /etc/ocaml/ld.conf and run ocaml-ldconf, the lines still do not appear in 
/usr/lib/ocaml/ld.conf; doing

ocaml-ldconf -a /usr/local/lib/ocaml/contrib 

works around this though

PROBLEM 2:

I installed pcre-ocaml in /usr/local/lib/ocaml/contrib :

$ ls -l /usr/local/lib/ocaml/contrib
total 132k
-rw-r--r--    1 root     staff         11k Dec 25 07:56 dllpcre_stubs.so
-rw-r--r--    1 root     staff        6.2k Dec 25 07:56 libpcre_stubs.a
-rw-r--r--    1 root     staff         45k Dec 25 07:56 pcre.a
-rw-r--r--    1 root     staff         24k Dec 25 07:56 pcre.cma
-rw-r--r--    1 root     staff         11k Dec 25 07:56 pcre.cmi
-rw-r--r--    1 root     staff         532 Dec 25 07:56 pcre.cmxa
-rw-r--r--    1 root     staff         23k Dec 25 07:56 pcre.mli

and added the directory to ld.conf as described above. However,
doing 
# #load "pcre.cma";; 
fails unless I use the full path. Similar problems are encountered with ocamlc 
and ocamlopt when a file containing "open Pcre" is given to them. I know this 
can be solved with a "-L" option, but I thought the point of using 
ocaml-ldconf was in not having to use "-L" and full paths.

Is this a bug or am I doing something incorrectly?

Thanks,
and Happy Holiday Season,

Oleg
P.S. Please keep me in the "Cc:" or "To:"



Reply to: