You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please suggest reinstalling ocamlfind, or fix ocamlfind automatically
See the report on the mailing list and the solution.
It'd be best if installing the camlp4+system package would do whatever is needed for ocamlfind to find the package:
could it install the required META files for camlp4?
should it suggest to the user to manually run opam reinstall ocamlfind? (probably not desirable as it involves recompiling almost everything)
should it trigger the rebuild of ocamlfind on its own? (not sure if its even possible, and see previous point)
Improve the check-camlp4.sh script
To also check that ocamlfind can find the camlp4 package.
Testcase using docker (original report is about Arch, I use CentOS7 here for simplicity),
see how ocamlfind query camlp4 only works after ocaml-camlp4-devel system package is installed, camlp4 opam package is installed, and ocamlfind is reinstalled:
$ cat >Dockerfile <<EOF
FROM centos:latest
RUN cd /etc/yum.repos.d/ &&\
curl -L -O http://download.opensuse.org/repositories/home:ocaml/CentOS_7/home:ocaml.repo &&\
yum install -y ocaml opam m4 make patch gcc git
RUN opam init -y
RUN opam install ocamlfind
RUN yum install -y ocaml-camlp4
RUN opam install camlp4 || yum install -y ocaml-camlp4-devel
RUN opam config exec -- ocamlfind query camlp4 || opam reinstall ocamlfind
RUN opam config exec -- ocamlfind query camlp4
EOF
$ sudo docker rmi test-camlp4; sudo docker build -t test-camlp4 .
On CentOS/Fedora please suggest to install
ocaml-camlp4-devel
This would be the equivalent of
camlp4-extra
in Debian.The current message is:
Please suggest reinstalling ocamlfind, or fix ocamlfind automatically
See the report on the mailing list and the solution.
It'd be best if installing the camlp4+system package would do whatever is needed for ocamlfind to find the package:
opam reinstall ocamlfind
? (probably not desirable as it involves recompiling almost everything)Improve the check-camlp4.sh script
To also check that ocamlfind can find the camlp4 package.
Testcase using docker (original report is about Arch, I use CentOS7 here for simplicity),
see how
ocamlfind query camlp4
only works afterocaml-camlp4-devel
system package is installed,camlp4
opam package is installed, andocamlfind
is reinstalled:Output is available in this gist
@diml: thoughts?
The text was updated successfully, but these errors were encountered: