Loading ...
Sorry, an error occurred while loading the content.

PXP in interactive mode

Expand Messages
  • patrick jayet
    Hi Everybody, I try to run in interactive mode a small program using the PXP (XML parsing) library. Unfortunately, after loading the library, I am not able to
    Message 1 of 3 , Nov 30, 2005
    • 0 Attachment
      Hi Everybody,

      I try to run in interactive mode a small program using the PXP (XML
      parsing) library. Unfortunately, after loading the library, I am not
      able to access the modules. Here is what I get:

      [load the modules]

      $ ocaml
      Objective Caml version 3.08.3

      # #load "/usr/lib/ocaml/3.08.3/unix.cma";;
      # #load "/usr/lib/ocaml/3.08.3/pcre/pcre.cma";;
      # #load "/usr/lib/ocaml/3.08.3/netstring/netstring.cma";;
      # #load "/usr/lib/ocaml/3.08.3/pxp-engine/pxp_engine.cma";;
      # #load "/usr/lib/ocaml/3.08.3/pxp-lex-iso88591/pxp_lex_iso88591.cma";;
      # #load "/usr/lib/ocaml/3.08.3/pxp-lex-iso88591/pxp_lex_link_iso88591.cmo";;

      [trying to open one of them]

      # open Pxp_document;;
      Unbound module Pxp_document


      Although Pxp_document is one of the module from Pxp. I am using ocaml
      3.08.3 on Linux Debian.

      Any idea?

      Cheers,

      Pat
    • Stefano Zacchiroli
      ... You probably forgot to open one of the needed module. If you re using Debian you should have ocaml-findlib installed, I suggest to use it! $ ocaml
      Message 2 of 3 , Dec 1, 2005
      • 0 Attachment
        On Thu, Dec 01, 2005 at 04:24:59PM +1100, patrick jayet wrote:
        > Although Pxp_document is one of the module from Pxp. I am using ocaml
        > 3.08.3 on Linux Debian.
        >
        > Any idea?

        You probably forgot to open one of the needed module. If you're using
        Debian you should have ocaml-findlib installed, I suggest to use it!

        $ ocaml
        Objective Caml version 3.09.0

        # #use "topfind";;
        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

        # #require "pxp-engine";;
        /usr/lib/ocaml/3.09.0/pcre: added to search path
        /usr/lib/ocaml/3.09.0/pcre/pcre.cma: loaded
        /usr/lib/ocaml/3.09.0/unix.cma: loaded
        /usr/lib/ocaml/3.09.0/netstring: added to search path
        /usr/lib/ocaml/3.09.0/netstring/netstring.cma: loaded
        /usr/lib/ocaml/3.09.0/netstring/netstring_top.cmo: loaded
        /usr/lib/ocaml/3.09.0/netstring/netaccel.cma: loaded
        /usr/lib/ocaml/3.09.0/netstring/netaccel_link.cmo: loaded
        /usr/lib/ocaml/3.09.0/netstring/compatcgi.cma: loaded
        /usr/lib/ocaml/3.09.0/pxp-engine: added to search path
        /usr/lib/ocaml/3.09.0/pxp-engine/pxp_engine.cma: loaded
        /usr/lib/ocaml/3.09.0/pxp-engine/pxp_top.cmo: loaded
        # open Pxp_module;;
        Unbound module Pxp_module
        # open Pxp_document;;
        #

        Hope this helps.
        Cheers.

        --
        Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
        zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
        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. -!-
      • patrick jayet
        Hi Stefano, ... [...] ... [...] ... Thank you very much, that s exactly what I was looking for. Cheers, :) Pat
        Message 3 of 3 , Dec 1, 2005
        • 0 Attachment
          Hi Stefano,

          > # #use "topfind";;
          [...]
          > # #require "pxp-engine";;
          > /usr/lib/ocaml/3.09.0/pcre: added to search path
          > /usr/lib/ocaml/3.09.0/pcre/pcre.cma: loaded
          > /usr/lib/ocaml/3.09.0/unix.cma: loaded
          > /usr/lib/ocaml/3.09.0/netstring: added to search path
          > /usr/lib/ocaml/3.09.0/netstring/netstring.cma: loaded
          > /usr/lib/ocaml/3.09.0/netstring/netstring_top.cmo: loaded
          > /usr/lib/ocaml/3.09.0/netstring/netaccel.cma: loaded
          > /usr/lib/ocaml/3.09.0/netstring/netaccel_link.cmo: loaded
          > /usr/lib/ocaml/3.09.0/netstring/compatcgi.cma: loaded
          > /usr/lib/ocaml/3.09.0/pxp-engine: added to search path
          > /usr/lib/ocaml/3.09.0/pxp-engine/pxp_engine.cma: loaded
          > /usr/lib/ocaml/3.09.0/pxp-engine/pxp_top.cmo: loaded
          [...]
          > # open Pxp_document;;
          > #

          Thank you very much, that's exactly what I was looking for.

          Cheers, :)

          Pat
        Your message has been successfully submitted and would be delivered to recipients shortly.