在cygwin4下安装ocamlfind的困难 [英] difficulty installing ocamlfind under cygwin4
问题描述
我已在cygwin64(Windows 10计算机)下安装了ocaml.Ocaml,ocamlc似乎运行良好,但我需要安装软件包.因此,我尝试了opam,但它抱怨ocamlfind丢失了.我尝试通过两种方式安装ocamlfind来进行安装-使用opam,并从gitlab.camlcity.org上的findlib存储库中安装ocamlfind-在这两种情况下,都未能找到 dllunix.so 而失败.我注意到环境变量OCAMLLIB是C:\ Ocaml(即在cygwin目录树之外),但是在/usr/lib/ocaml/stublibs中有一个这样的文件.修改OCAMLLIB使其指向该位置后,我收到以下错误.
I have installed ocaml under cygwin64 (a Windows 10 computer). Ocaml, ocamlc seem to run fine, but I need packages. So I've tried opam, and it complained that ocamlfind was missing. I have tried to install ocamlfind it two ways - using opam and from the findlib repository on gitlab.camlcity.org - and in both cases, it failed on not finding dllunix.so . I noticde that the environment variable OCAMLLIB was C:\Ocaml (ie outside the cygwin directory tree), but that in /usr/lib/ocaml/stublibs there was such a file. Having modified OCAMLLIB to point there, I received the following error.
无法加载所需的共享库dllunix.原因:/usr/lib/ocaml/stublibs/dllunix.so:flexdll错误:无法重定位RELOC_REL32,目标太远:0xfffffffc02c37112 0x2c37112.
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.
我在另一个图书馆也有类似的消息:
I have a similar message on another library as well:
错误:动态加载的库上的错误:/usr/lib/ocaml/stublibs/dllcamlstr.so:flexdll错误:无法重定位RELOC_REL32,目标距离太远:0xfffffffc02b6a92a 0x2b6a92a
Error: Error on dynamically loaded library: /usr/lib/ocaml/stublibs/dllcamlstr.so: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02b6a92a 0x2b6a92a
推荐答案
首先:
这不是编程问题,它是支持要求,正确的地方是cygwin邮件列表.您可以遵循以下准则: https://cygwin.com/problems.html
this is not a programming question, it is a support requirement and the right place is the cygwin mailing list. You can follow guidelines on: https://cygwin.com/problems.html
第二:
您可以尝试以下方法,执行
you can try the following approach, execute
/usr/bin/rebase-trigger fullrebase
关闭所有cygwin程序和服务,然后再次运行setup-x86_64.有关文档的更多信息
than close all the cygwin programs and services, and run setup-x86_64 again. Further info on document
/usr/share/doc/Cygwin/_autorebase.README
如果第二个失败,请跟随一个.真的.
If number two fails, follow one. Really.
这篇关于在cygwin4下安装ocamlfind的困难的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!