编译Unison 2.48.4 Manjaro上的OCAML版本4.08.1构建

发布于 2025-02-04 15:51:19 字数 278 浏览 3 评论 0原文

我需要使用特定OCAML版本编译的特定Unison版本与Ubuntu Server 20.04 LTS上的Unison软件包一起使用。 我需要Unison 2.48.4使用OCAML版本4.08.1构建。 AUR中的软件包似乎是使用另一个OCAML版本构建的,在我的情况下无法使用。

在Manjaro的存储库中,仅Unison 2.52和OCAML版本4.13.1可用,目前已安装在我的系统上。

有人可以为我提供新手Dummy指南如何使用两个程序的特定版本安装和构建?我从哪里获取源文件?

非常感谢。

I need a specific unison version compilied with a specific OCaml version to work together with the unison package on Ubuntu Server 20.04 LTS.
I need unison 2.48.4 build with OCaml version 4.08.1. The package in AUR seems to be build with another OCaml version and cannot be used in my case.

In the repositories of Manjaro only unison 2.52 and OCaml version 4.13.1 are available and currently installed on my system.

Can somebody give me newbie-dummy guide how to install and build with specific versions of both programs? And where I get the source files from?

Thank you very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风尘浪孓 2025-02-11 15:51:19

您应该通过 opam )在安装OPAM后通过

OPAM安装之前(不要忘记opam Init),您可以安装编译器版本(在默认开关中),您可以

opam install ocaml-compiler.<version>

使用

opam switch list-available

而且您甚至可以使用本地开关来创建一个本地开关,

opam switch create <version>

以便在您的情况下

opam install ocaml-compiler.4.08.1

,或者

opam switch create 4.08.1

如果要安装软件包的特定版本,

opam install <package>.<version>

You should install OCaml through opam (if you already have an OCaml installation, delete it completely before installing through opam)

Once you have opam installed (don't forget to opam init), you can install the compiler version (in the default switch) you want with

opam install ocaml-compiler.<version>

You can list all the available compilers with

opam switch list-available

And you can even create a local switch with

opam switch create <version>

So in your case it would be

opam install ocaml-compiler.4.08.1

or

opam switch create 4.08.1

Then if you want to install a specific version of a package just do

opam install <package>.<version>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文