[ocaml-platform] Aquamacs detecting incorrect build environment

Shrutarshi Basu basus at cs.cornell.edu
Wed Jun 15 16:04:44 BST 2016


Hello all,
I'm not sure if this is the right place for this message, but I'm
encountering a strange error with my OCaml setup and Aquamacs on OS X. I'm
using a Oasis-based setup to build my project, and I have both an OPAM
installation and system OCaml compilers. When I run the Oasis-generated
Makefile from the terminal (Zsh) I get a correct build. But when running
Make from inside Aquamacs I get the correct ocamlfind (from OPAM) but I get
the system versions of other tools. Here is top of the output from running
the Oasis-generated configure (ocaml setup.ml -configure $@) from Aquamacs:

ocamlfind: ........................................... /Users/basus
/.opam/4.02.3/bin/ocamlfind

ocamlc: ..............................................
/usr/local/bin/ocamlc.opt

ocamlopt: ............................................
/usr/local/bin/ocamlopt.opt

ocamlbuild: ..........................................
/usr/local/bin/ocamlbuild


Aquamacs seems to have the correct PATH. The `exec-path` variable has the
OPAM 4.02.3/bin directory right at the start. Any ideas on how I could go
about debugging or fixing this?

Thanks,
Basu



-- 
Shrutarshi Basu
Basus.me
The ByteBaker <http://bytebaker.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/platform/attachments/20160615/d537548e/attachment.html>


More information about the Platform mailing list