Discussion:
[ocaml-platform] Aquamacs detecting incorrect build environment
Shrutarshi Basu
2016-06-15 15:04:44 UTC
Permalink
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>
Loading...