gpt4 book ai didi

centos - 如何在 OS X 和 Linux 上使用 unison?由于 ocaml 版本导致的 fatal error

转载 作者:太空宇宙 更新时间:2023-11-03 17:13:09 26 4
gpt4 key购买 nike

我正在尝试从我的 OS X 机器使用 unison 到运行的 linux 机器:CentOS 6.10 版(最终版)

我不得不为 linux 机器做一个 unison 2.51 的静态编译。这个版本是:

unison version 2.51.2 (ocaml 4.02.3)

在 OS X 机器上,我使用了“brew install unison”。这给了我:

unison version 2.51.2 (ocaml 4.08.1)

如果我现在尝试使用 unison,我会得到:

Fatal error during unmarshaling (input_value: ill-formed message), possibly because client and server have been compiled with differentversions of the OCaml compiler.

我该怎么做才能让一致发挥作用?

最佳答案

您必须在您的 Linux 机器上从源代码编译 ocaml 和 unison。

Ocaml:您可以在 https://caml.inria.fr/pub/distrib/ 上找到 ocaml 4.08 .编译说明在自述文件中。

齐奏:来自 https://github.com/bcpierce00/unison/commits/master ,您将看到提交 acfa105 是经过验证的与 Ocaml 4.08.1 兼容的提交。下载此提交并运行 make。

我遇到了完全相同的问题,并且能够使用上述步骤解决它。

关于centos - 如何在 OS X 和 Linux 上使用 unison?由于 ocaml 版本导致的 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58661715/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com