-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 env
does not set OCAMLPATH
#27495
Comments
Somehow there seems to be a mixup between the environment of your Could you show the output of the |
|
Indeed, the culprit is Why isn’t this variable set by |
opam env
does not set OCAMLPATH
OK, so this is about setting automatically |
My system is Manjaro. A lot of packages fail to install in switches other than the default one, for instance menhir or js_of_ocaml-ocamlbuild, with errors such as:
As you can see, it looks like some files are looked for in the default opam switch. There is
-I /home/frigory/.opam/default/lib/ocamlbuild
in the compilation command. With menhir, I have-I /home/frigory/.opam/default/lib/menhirLib -I /home/frigory/.opam/default/lib/menhirSdk
.Where does this problem come from? I don’t get those errors on Windows: my opam switches work on Windows. But I’m getting this error on my 2 Manjaro systems (which are not in sync).
The text was updated successfully, but these errors were encountered: