我正在尝试通过 cabal install 安装无须鳕。
首先 - 虽然可用的最新软件包是 1.3.7,但 cabal 尝试安装 1.2
除此之外:
~ % cabal install hake-1.2
Resolving dependencies...
Configuring hake-1.2...
Building hake-1.2...
Preprocessing library hake-1.2...
Development/Hake.hs:49:8:
Could not find module `System.Directory.Tools'
Perhaps you meant System.Directory (from directory-1.1.0.2)
Use -v to see a list of the files searched for.
Failed to install hake-1.2
cabal: Error: some packages failed to install:
hake-1.2 failed during the building phase. The exception was:
ExitFailure 1
如果我尝试更具体 - 我会收到其他错误
~ % cabal install hake-1.3.7
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hake-1.3.7
rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed
instance)
rejecting: base-4.5.1.0/installed-81d... (conflict: hake => base<=4.3.1.0)
rejecting: base-4.6.0.1, 4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0,
4.3.0.0, 4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0 (global constraint
requires installed instance)
我难住了。
更新
看来作者已经在源代码中对包进行了相关更改,至少在 GitHub https://github.com/YoshikuniJujo/hake_haskell上,但它们还没有在 Hackage 中。