Hi, Thanks. One more naive difficulty : I could do #use "topfind" but #require "lacaml" wasnt successful. It says no such packgae found though I have lacaml installed in the same /usr/lib64/ocaml directory. I have also added required variables to PATH and LD_LIBRARY_PATH. It does not show lacaml after "#list" too. I reinstalled lacaml but same thing again. What can be the reason? Regardsm Onkar On 11/26/09, Richard W.M. Jones <rjones@xxxxxxxxxx> wrote: > On Tue, Nov 17, 2009 at 11:43:50AM +0530, onkar bhardwaj wrote: >> Hi, >> I executed "yum install ocaml-lacaml" on my system but I don't know how to >> use it. >> Since this was installed using rpm, I am unable to know what module to >> open >> or >> which library to link and where yum has installed these things. >> Can someone send me a sample example? It will be a big help. > > Sorry Onkar, didn't see this until now because of all the other status > messages on this list. I hope this reply doesn't come too late. > > You can use lacaml in various ways. Certainly the easiest way is to > use ocamlfind / topfind, like this: > > $ ocaml > > Objective Caml version 3.11.1 > > # #use "topfind";; > - : unit = () > Findlib has been successfully loaded. Additional directives: > #require "package";; to load a package > #list;; to list the available packages > #camlp4o;; to load camlp4 (standard syntax) > #camlp4r;; to load camlp4 (revised syntax) > #predicates "p,q,...";; to set these predicates > Topfind.reset();; to force that packages will be reloaded > #thread;; to enable threads > > - : unit = () > # #require "lacaml";; > /usr/lib64/ocaml/unix.cma: loaded > /usr/lib64/ocaml/bigarray.cma: loaded > /usr/lib64/ocaml/lacaml: added to search path > /usr/lib64/ocaml/lacaml/lacaml.cma: loaded > /usr/lib64/ocaml/lacaml/lacaml_top.cma: loaded > > You can then do: > > open Lacaml.Impl.S > > and there are hundreds of functions available. Probably best to read > the documentation: > > http://hg.ocaml.info/release/lacaml/raw-file/release-5.4.7/README.txt > > In general terms, lacaml on Fedora should behave and act exactly the > same way as it does on other OCaml distributions. If there are any > differences, they might be bugs, so file a bugzilla. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > virt-df lists disk usage of guests without needing to install any > software inside the virtual machine. Supports Linux and Windows. > http://et.redhat.com/~rjones/virt-df/ > -- --------------------------------------------- Onkar Bhardwaj M.E. 2006-08 (Telecommunication) Indian Institute of Science, Bangalore --------------------------------------------- _______________________________________________ Fedora-ocaml-list mailing list Fedora-ocaml-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-ocaml-list