簡體   English   中英

在Windows上與cabal安裝一起使用哪個unix兼容性工具鏈?

[英]Which unix compatibility toolchain to use with cabal install on windows?

嘗試在win7 / 64上安裝BlogLiterately

  • 已安裝HP 2014.2 / 64
  • cabal update
  • cabal install cabal-install
  • C:\\Program Files\\Haskell Platform\\2014.2.0.0\\lib\\extralibs\\bin\\cabal.exe重命名為* .old
  • cabal update
  • cabal install BlogLiterately失敗,因為cuz需要Unix工具鏈來安裝新版本的network
  • 嘗試安裝mingw ,但放棄了cuz,僅彈出后綴為32的軟件包管理器(我想要64 ,無法從http://www.mingw.org/判斷是否支持64位。
  • 嘗試安裝cygwin64 ,將C:\\cygwin64\\binPATH末尾 ,不起作用,在互聯網上看到人們認為cygwin對於ghc不再適用,即使原始錯誤說cygwin也會起作用
  • 找到http://msys2.github.io/ ,進行了安裝,並按照說明在該頁面上使用pacman進行了更新,並使用了Win64 Shell
  • 收到HsOpenSSL缺少c libs eay32 ssl32錯誤, HsOpenSSL eay32 ssl32搜索說要安裝http://slproweb.com/products/Win32OpenSSL.html,然后cabal install HsOpenSSL --extra-include-dirs="c:/OpenSSL-Win64/include" --extra-lib-dirs="c:/OpenSSL-Win64"cabal install HsOpenSSL --extra-include-dirs="c:/OpenSSL-Win64/include" --extra-lib-dirs="c:/OpenSSL-Win64" ,但是找不到任何官方的文檔說我需要Win32OpenSSL –為什么無法為我安裝它?
  • 現在, cabal install BlogLiterately cuz cabal install BlogLiterately失敗ghc.exe: unable to load package 'hs-bibutils-5.5'

錯誤:

ghc.exe: warning: _stricmp from msvcrt is linked instead of __imp__stricmp
ghc.exe: warning: _stricmp from msvcrt is linked instead of __imp__stricmp
ghc.exe: warning: _atoi64 from msvcrt is linked instead of __imp__atoi64
ghc.exe: warning: toupper from msvcrt is linked instead of __imp_toupper
ghc.exe: warning: _strnicmp from msvcrt is linked instead of __imp__strnicmp
ghc.exe: C:\Users\nlab\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\hs-bibutils-5.5\HShs-bibutils-5.5.o: unknown symbol `strdup'

cabal install hs-bibutils --reinstall --force-reinstalls成功,但是重試BlogLiterately安裝時出現相同錯誤。 我嘗試將/c/Program Files/Haskell Platform/2014.2.0.0/mingw/bin移到PATH的前面,然后再次重新安裝hs-bibutils ,結果相同。

正確的方法是什么?!?! 我們應該使用哪個unix工具鏈,以及如何配置它? 為什么HP包含mingw的二進制文件還不夠? 加。

為方便起見,如果在平台網站上描述了一些額外的設置來擴充cabal文件,則適用於Windows的Haskell平台的新版本(自8.0.1起)允許網絡正確構建。https : //www.haskell.org/平台/

Modify your cabal config file (you can verify the location by running "cabal user-config init") to contain the following lines:
extra-prog-path: C:\Program Files\Haskell Platform\8.0.1\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM