From: Thomas Gazagnaire <thomas@ocamlpro.com>
To: Casey Basichis <caseybasichis@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Setting up OcaIDE
Date: Tue, 20 Aug 2013 21:09:47 +0200 [thread overview]
Message-ID: <95B851B6-93AF-47A2-9C65-95E169B1DA07@ocamlpro.com> (raw)
In-Reply-To: <CAKX7ZAVY_yFYq6nNw+Tx_pQnA1hq9PnX+x=XGS0EHjAFee7zNg@mail.gmail.com>
> I built the latest dev on osx and also installed the ocaml binaries. I am getting errors with OcaIDE. Eclipse:
You need to tell Eclipse/OcaIDE to load the right environment variables (to locate your OPAM installation).
I am not very used to OcaIDE so I can't help you much there, but I can suggest few workaround:
- start Eclipse on the command-line -- be sure to have "eval `opam config env`" before. It it works that means that your application is not run with the right environment variables -- dunno how to fix this properly on OSX.
- copy paste:
> let () =
> try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
> with Not_found -> ()
directly in the Eclipse top-level, and run "#load "topfind" again. If it works, that means that OCaIDE is not loading ~/.ocamlinit (a bug worth reporting upstream)
- change the path of ocaml& ocamlc/ocamlopt in some OcaIDE menus to hard-code /Users/caseybasichis/.opam/4.01.0dev+trunk/bin/ocaml{,c,opt}
Hope this help,
Thomas
> 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
> 310.387.7540
next prev parent reply other threads:[~2013-08-20 19:09 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
2013-08-20 19:09 ` Thomas Gazagnaire [this message]
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=95B851B6-93AF-47A2-9C65-95E169B1DA07@ocamlpro.com \
--to=thomas@ocamlpro.com \
--cc=caml-list@inria.fr \
--cc=caseybasichis@gmail.com \
/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