hackage-server 构建失败 - 是否有特定的 ghc/cabal 版本要求?
hackage-server fails to build - are there specific ghc/cabal version requirements?
我正在尝试构建 运行 Hackage 服务器的副本 https://github.com/haskell/hackage-server. I followed the instructions here https://github.com/haskell/hackage-server/wiki 以及自述文件中的说明。无论我尝试哪种方式,在尝试使用 ghc 7.8.4 和 cabal 1.22 进行构建时,我都会收到以下错误:
Preprocessing executable 'hackage-server' for hackage-server-0.5.0...
Main.hs:40:8:
Could not find module ‘Network.URI’
It is a member of the hidden package ‘network-uri-2.6.0.1’.
Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘network-2.4.2.3’.
Perhaps you need to add ‘network’ to the build-depends in your .cabal file.
我也尝试过使用最新的 Haskell 平台,但我收到了同样的失败消息。
我正在尝试确定这是 hackage-server 当前 master 分支中的错误,还是与我安装 ghc 或 cabal 的方式有关。
编辑:我再次尝试使用 Ubuntu 14.04 repo haskell-平台(ghc 7.6.3,cabal 1.16)并发生同样的错误。
network-uri
was split from network
不久前,但看起来 Hackage 尚未更新该更改。
作为解决方法,打开 hackage-server.cabal
并将这些行添加到 build-dependencies
:
network >= 2.6,
network-uri >= 2.6
这应该让它再次工作。
我正在尝试构建 运行 Hackage 服务器的副本 https://github.com/haskell/hackage-server. I followed the instructions here https://github.com/haskell/hackage-server/wiki 以及自述文件中的说明。无论我尝试哪种方式,在尝试使用 ghc 7.8.4 和 cabal 1.22 进行构建时,我都会收到以下错误:
Preprocessing executable 'hackage-server' for hackage-server-0.5.0...
Main.hs:40:8:
Could not find module ‘Network.URI’
It is a member of the hidden package ‘network-uri-2.6.0.1’.
Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘network-2.4.2.3’.
Perhaps you need to add ‘network’ to the build-depends in your .cabal file.
我也尝试过使用最新的 Haskell 平台,但我收到了同样的失败消息。
我正在尝试确定这是 hackage-server 当前 master 分支中的错误,还是与我安装 ghc 或 cabal 的方式有关。
编辑:我再次尝试使用 Ubuntu 14.04 repo haskell-平台(ghc 7.6.3,cabal 1.16)并发生同样的错误。
network-uri
was split from network
不久前,但看起来 Hackage 尚未更新该更改。
作为解决方法,打开 hackage-server.cabal
并将这些行添加到 build-dependencies
:
network >= 2.6,
network-uri >= 2.6
这应该让它再次工作。