2016-08-01 157 views
0

我在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

回答

0

第一:

这是不是一个编程的问题,它是一个支持的要求,正确的地点是在cygwin邮件列表。再次运行安装程序-x86_64的

,你可以试试下面的办法,执行

/usr/bin/rebase-trigger fullrebase

比关闭所有cygwin的程序和服务,并且:您可以按照准则: https://cygwin.com/problems.html

二。 对文件

/usr/share/doc/Cygwin/_autorebase.README

如果排名第二的失败进一步信息,请按照之一。真。

+0

谢谢。第2号确实失败了,所以我会不遵守。 1 - 或者我可以通过使用cygwin32(?)来解决这个问题。 – Amir