我在cygwin64(一台Windows 10电脑)下安装了ocaml。 Ocaml,ocamlc似乎运行良好,但我需要软件包。所以我尝试了opam,并且抱怨说ocamlfind不见了。我试图用两种方法安装ocamlfind - 使用opam和来自gitlab.camlcity.org上的findlib存储库 - 并且在两种情况下,都没有找到dllunix.so。我通知环境变量OCAMLLIB是C:\ Ocaml(即在cygwin目录树之外),但是在/ usr/lib/ocaml/stublibs中有这样一个文件。修改了OCAMLLIB指向那里,我收到以下错误。在cygwin4下安装ocamlfind的困难
Cannot load required shared library dllunix. Reason: /usr/lib/ocaml/stublibs/dllunix.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02c37112 0x2c37112.
我有另一个库类似的消息还有:
Error: Error on dynamically loaded library: /usr/lib/ocaml/stublibs/dllcamlstr.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02b6a92a 0x2b6a92a
谢谢。第2号确实失败了,所以我会不遵守。 1 - 或者我可以通过使用cygwin32(?)来解决这个问题。 – Amir