Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam installation with system compiler vs. path settings in OcaIDE #11

Open
nilsbecker opened this issue Jan 19, 2013 · 4 comments
Open

Comments

@nilsbecker
Copy link

i'm using opam with the "system" compiler, in my case this is Ocaml 4.00.1 installed in /usr/local via homebrew. The ocaml standard library is in /usr/local/lib/ocaml, whereas several opam installed extra libraries are in ~/.opam/system/lib

in OcaIDE, i can only specify a single lib path (right?) there seems no way to pick up libraries from both locations for autocomplete etc...

@izderadicka
Copy link

Same question here - it would be nice if I can add additional libraries to auto-complete, ideally in same way that meaningfully integrates with OPAM

@nyash
Copy link

nyash commented May 13, 2014

+1 @izderadicka
Would love the same.

@jiamo
Copy link

jiamo commented Jul 17, 2014

(* Added by OPAM. *)
let () =
  try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
  with Not_found -> ()
;;
#use "topfind";;
#thread;;
#camlp4o;;
#require "core.top";;
#require "core.syntax";;

Can make ocaml work fine to use : open Core.Std
While the toplevel in ocaIDE meet error : Cannot find file topfind

@izderadicka
Copy link

toplevel in OCAIde just needs to know correct env variables - if you start eclipse with this shell script it'll work:(replace path with correct directions on your system):

#!/bin/bash
# OPAM configuration
. /home/ivan/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
/opt/eclipse/eclipse $@ &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants