Cabal找不到合适的包装

时间:2013-12-13 16:59:50

标签: haskell cabal

⇒ cabal build           
./vinyltest.cabal has been changed. Re-configuring with most recently used
options. If this fails, please run configure manually.
Resolving dependencies...
Configuring vinyltest-0.1.0.0...
cabal: At least the following dependencies are missing:
filePath -any

-

⇒ cabal install filePath
Resolving dependencies...
All the requested packages are already installed:
filepath-1.3.0.1
Use --reinstall if you want to reinstall anyway

这怎么可能发生?它告诉我缺少filePath,如果我尝试安装它,它会告诉我它已经安装了。

我在这里缺少什么?

1 个答案:

答案 0 :(得分:2)

我愿意打赌在vinyltest.cabal中你的构建依赖限制中这是一个错字。您有filePath,而实际的套餐名称为filepath(小写' p')。 cabal install并不特别在意,但ghc-pkg(由cabal configure / build使用)区分大小写。

$ ghc-pkg list filepath
/usr/local/lib/ghc-7.6.3/package.conf.d
   filepath-1.3.0.1
/home/elliot/.ghc/x86_64-linux-7.6.3/package.conf.d

$ ghc-pkg list filePath
/usr/local/lib/ghc-7.6.3/package.conf.d
/home/elliot/.ghc/x86_64-linux-7.6.3/package.conf.d

注意大写的P'没有找到包裹,而正确资本化的小写字母' p'确实