如何跨 OS X 和 linux 使用一致?由于 ocaml 版本导致的致命错误 [英] How to use unison across OS X and linux? Fatal error due to ocaml version
问题描述
我正在尝试在我的 OS X 机器上使用 unison 到一个正在运行的 linux 机器:CentOS release 6.10 (Final)
I am trying to use unison from my OS X machine to a linux box running: CentOS release 6.10 (Final)
我必须为 linux 机器制作 unison 2.51 的静态编译.这个版本是:
I had to make a static compilation of unison 2.51 for the linux box. This version is:
unison version 2.51.2 (ocaml 4.02.3)
在 OS X 机器上,我使用了brew install unison".这给了我:
On the OS X machine I used "brew install unison". This gives me:
unison version 2.51.2 (ocaml 4.08.1)
如果我现在尝试使用 unison,我会得到:
If I try to now use unison I get:
Fatal error during unmarshaling (input_value: ill-formed message), possibly because client and server have been compiled with differentversions of the OCaml compiler.
我该怎么做才能让一致工作?
What can I do to get unison to work?
推荐答案
你必须在你的 linux 机器上从源代码编译 ocaml 和 unison.
You will have to compile ocaml and unison from source on your linux box.
Ocaml:您可以在 https://caml.inria.fr/pub/distrib 上找到 ocaml 4.08/.编译说明在自述文件中.
Ocaml: You can find ocaml 4.08 on https://caml.inria.fr/pub/distrib/. The instructions for compiling are in the readme.
Unison:来自 https://github.com/bcpierce00/unison/commits/master,您将看到提交 acfa105 是与 Ocaml 4.08.1 兼容的经过验证的提交.下载此提交并运行 make.
Unison: From https://github.com/bcpierce00/unison/commits/master, you will see that the commit acfa105 is a verified commit compatible with Ocaml 4.08.1. Download this commit and run make.
我遇到了完全相同的问题,并且能够使用上述步骤解决它.
I ran into the exact same issue and was able to resolve it using the above steps.
这篇关于如何跨 OS X 和 linux 使用一致?由于 ocaml 版本导致的致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!