小编Jon*_*dal的帖子

zlib与GHC构建错误

我正在使用具有以下配置的VM:

  • Arch Linux(3.0-ARCH内核)
  • GHC 7.0.3
  • cabal-install 0.10.2
  • Cabal library 1.10.1.0

当我尝试使用cabal构建zlib时...

$ cabal install zlib
Run Code Online (Sandbox Code Playgroud)

我得到以下输出:

Resolving dependencies...
Downloading zlib-0.5.3.2...
Configuring zlib-0.5.3.2...
Preprocessing library zlib-0.5.3.2...
Stream.hsc:86:21: error: missing binary operator before token "("
Stream.hsc: In function ‘main’:
Stream.hsc:86:21: error: missing binary operator before token "("
Stream.hsc:86:21: error: missing binary operator before token "("
compiling dist/build/Codec/Compression/Zlib/Stream_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/Codec/Compression/Zlib/Stream_hsc_make.c -o dist/build/Codec/Compression/Zlib/Stream_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=700 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/lib/ghc-7.0.3/bytestring-0.9.1.10/include -I/usr/lib/ghc-7.0.3/base-4.3.1.0/include -I/usr/lib/ghc-7.0.3/include -I/usr/lib/ghc-7.0.3/include -I/usr/lib/ghc-7.0.3/include/
cabal: Error: …
Run Code Online (Sandbox Code Playgroud)

haskell zlib ghc cabal archlinux

13
推荐指数
3
解决办法
4628
查看次数

标签 统计

archlinux ×1

cabal ×1

ghc ×1

haskell ×1

zlib ×1