caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: RE: [Caml-list] Setting up OcaIDE
Date: Tue, 20 Aug 2013 18:51:00 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9CCB374FD@Remus.metastack.local> (raw)
In-Reply-To: <CAKX7ZAVY_yFYq6nNw+Tx_pQnA1hq9PnX+x=XGS0EHjAFee7zNg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

It looks like you haven't installed findlib (i.e. the ocamlfind command). findlib installs a script called topfind into your ocaml lib dir which loads findlib into the toplevel and provides the camlp4o directive.

I've not used opam, but I expect it's something along the lines of opam install findlib ...


David

From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] On Behalf Of Casey Basichis
Sent: 20 August 2013 20:38
To: caml-list@inria.fr
Subject: [Caml-list] Setting up OcaIDE

Hi,

I'm just getting started with ocaml, following along with the new "Real World Ocaml" book.

I built the latest dev on osx and also installed the ocaml binaries.  I am getting errors with OcaIDE. Eclipse:
OCaml version 4.00.1

Cannot find file topfind.

Unknown directive `camlp4o'.

#
I've tried a number of things to get it going to no avail.

I added the following to ~/.ocamlinit :
let () =
  try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
  with Not_found -> ()

to ~/.bash_profile I added :

export OCAML_TOPLEVEL_PATH=/Users/caseybasichis/.opam/4.01.0dev+trunk/lib/toplevel
eval `opam config env`

I also tried adding those to ~/.profile

I also tried building and make installing findlib-1.4

If you have any ideas of how I might get this running I would greatly appreciate it, I am very much looking forward to hello world hallelujah.

Thanks,
Casey

--
Casey James Basichis
Composer - Adventure Time - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com<mailto:caseybasichis@gmail.com>
310.387.7540

[-- Attachment #2: Type: text/html, Size: 9412 bytes --]

  reply	other threads:[~2013-08-20 18:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 18:37 Casey Basichis
2013-08-20 18:51 ` David Allsopp [this message]
2013-08-20 19:09 ` Thomas Gazagnaire
2013-08-20 20:23   ` Casey Basichis
2013-08-20 20:29     ` Jeremy Yallop
     [not found]     ` <20130820.223527.351659178592840423.Christophe.Troestler@umons.ac.be>
2013-08-20 21:20       ` Casey Basichis
2013-08-20 22:15         ` Leo White
2013-08-20 22:18           ` Casey Basichis
2013-08-20 22:46             ` Leo White
2013-08-21  0:16               ` Casey Basichis
2013-08-21  6:32                 ` Komtanoo Pinpimai
2013-08-21 15:13                   ` Casey Basichis
2013-08-21 16:10                     ` Ashish Agarwal
2013-08-21 16:21                     ` Siraaj Khandkar
2013-08-22  3:20                       ` Johan Mazel
2013-08-22 20:19                     ` William R

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=E51C5B015DBD1348A1D85763337FB6D9CCB374FD@Remus.metastack.local \
    --to=dra-news@metastack.com \
    --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).