OCaml for Mac
As I install most Linux/BSD software on Mac via Macports, I figured I’d forgo GODI and try to install OCaml the Macports way.
Everything went mostly smoothly except for ocamlnet which is installed as a dependency of batteries. By default, to avoid installing GPL software, Macports doesn’t build nethttpd and related modules. To work around this, perform the install as usual:
sudo port install caml-batteries
but this won’t install the httpd files. To the ocamlnet Portfile I had to add:
configure.args-append -with-nethttpd
after configure.pre_args. Also, for ocamlnet 2.2.9, I had to patch src/batCamomile.ml as follows:
replace:
-module CDC = CamomileLibrary.CamomileDefaultConfig
with:
+module CDC = CamomileLibraryDefault.Config
and:
-include CamomileLibrary.Main.Make(CamConfig)
with:
+include CamomileLibrary.Make(CamConfig)
then port uninstall batteries (and ocamlnet), then reinstall.
Categories: Uncategorized
Thanks for posting this, I had a similar problem and your fix worked.