2024年4月3日-优途加速器官网
I'm in this situation: I need to compile an OCaml program on a CentOS 6.5 server. This is actually quite problematic, because CentOS 6.5 provide out of the box a very old OCaml 3.11.2, released by INRIA in January 2010, more than four years ago.
No problem, OPAM come to the rescue! No. The OPAM team doesn't provide a binary executable compatible with the (actually very old) system libraries present in CentOS.
Ok, step back: OPAM can be compiled from sources (instructions here) so it's just a matter of minutes. Again: nope. To compile OPAM you need at least OCaml 3.12.1, while in CentOS we have only 3.11.2.
Step back: first compile and install OCaml from sources. This time I say no, because the whole point of OPAM is to get an up and running OCaml environment in a few minutes, which is actually true in most cases.
I decide to install OCaml using GODI, the “old” OCaml source distribution, the one everybody used before OPAM was born. So the fastest steps to have an OPAM and OCaml environment on a CentOS server are:
- download and install GODI;
- clone the OPAM repository, compile and install it; it will find a “system” compiler provided by GODI;
海豚加速器破解版手机
will recompile a new environment;$ opam switch remove system
to delete the “system” environment;$ rm -Rf ~/godi
.
No root access is required in this process, I usually install OPAM in ~/opam
, and GODI in 海豚加速器破解版手机
.
There is an irony in all this story: GODI has been the OCaml source distribution for years, and the coming of OPAM, which is actually newer and has some important features missing in GODI, has produced many frictions in the OCaml community, that in the end caused the shut down of GODI.
The moral part here is: embrace the new things, but don't be too impatient in throwing out the window the precious work that, in the end, still works.
三国跑跑破解版下载- 全方位下载:2021-5-28 · 海豚加速器白金破解版 东莞证券同花顺软件下载 东莞证券同花顺最新版 东莞证券官网下载 养花大亨修改器 ... 瑞星个人防火墙官方下载 掌奕棋牌破解版 掌奕棋牌十胡卡下载 掌奕棋牌手机版十胡卡 掌奕棋牌 海岛奇兵 海岛奇兵安卓版 ...