cabal安装tangaroa
解决依赖关系......
按顺序,将安装以下内容:
network-2.6.3.1(via:tangaroa-0.0.0.1 tangaroa-0.0.0.1 tangaroa-0.0.0.1 tangaroa-0.0.0.1)(新包装)
tangaroa-0.0.0.1(重新安装)(更改:删除了QuickCheck-2.8.2,添加了cryptohash-sha256-0.11.100.0,添加了目录-1.2.6.2,添加了filepath-1.4.1.0,添加了lifted-base-0.2.3.6,添加monad-control-1.0.1.0,添加monad-loops-0.4.3,添加随机-1.1,添加stm-2.4.4.1,添加变换器-0.5.2.0)
配置network-2.6.3.1 ...
无法安装network-2.6.3.1
构建日志(C:\ Users \ dell \ AppData \ Roaming \ cabal \ logs \ network-2.6.3.1.log):
配置network-2.6.3.1 ...
bash.exe:警告:找不到/ tmp,请创建!
configure:警告:无法识别的选项: - with-compiler
检查构建系统类型... bash.exe:警告:找不到/ tmp,请创建!
bash.exe:警告:找不到/ tmp,请创建!
x86_64的-PC-MSYS
检查主机系统类型... x86_64-pc-msys
检查gcc ...... D:\ GHC-80~1.1Τ
检查C编译器是否正常工作...没有
configure:error:in /cygdrive/c/Users/dell/AppData/Local/Temp/cabal-tmp-4120/network-2.6.3.1':
configure: error: C compiler cannot create executables
See
config.log'以获取更多详细信息
cabal:离开目录'C:\ Users \ dell \ AppData \ Local \ Temp \ cabal-tmp-4120 \ network-2.6.3.1'
答案 0 :(得分:0)
根据https://www.haskell.org/platform/上的说明,您需要将您的cabal配置为与包装的msys发行版进行通信,如下所示:
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.