我正在尝试构建并运行Hackage服务器https://github.com/haskell/hackage-server的副本。我按照这里的说明https://github.com/haskell/hackage-server/wiki以及自述文件中的说明进行操作。无论我尝试,试图建立与GHC 7.8.4和小集团1.22我收到以下错误时:hackage-server无法构建 - 是否有特定的ghc/cabal版本要求?
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的当前主分支中的错误,或者它与我安装ghc或cabal的方式有关。
编辑:我已经用Ubuntu 14.04 repo haskell-platform(ghc 7.6.3,cabal 1.16)再次尝试过,并且发生同样的错误。
如果将'network-uri> = 2.6'和'network> = 2.6'添加到'build-depends',它会起作用吗? –
@LambdaFairy这确实清除了这个错误,谢谢!我从编译器错误中发现,我可能可以通过这种方式修复它,但是我不想开始摆弄它,直到我确定它与ghc版本无关。 – matchwood
太棒了!我已经在下面发布了这个答案。 –