2016-08-01 265 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