【发布时间】:2013-06-06 20:53:03
【问题描述】:
我正在将我的 yesod 框架更新到最新的 yesod 1.2 版本。我已经安装了 yesod-platform (痛苦....不得不手动删除旧的依赖....cabal hell),现在我需要安装 yesod-bin 并且应该完成。但是,在sudo cabal install yesod-bin 之后出现以下错误。
Building yesod-bin-1.2.0...
Preprocessing executable 'yesod-ld-wrapper' for yesod-bin-1.2.0...
[1 of 1] Compiling Main ( ghcwrapper.hs, dist/build/yesod-ld-wrapper/yesod-ld-wrapper-tmp/Main.o )
Linking dist/build/yesod-ld-wrapper/yesod-ld-wrapper ...
/usr/bin/ld: cannot find -lHStar-0.4.0.1
/usr/bin/ld: cannot find -lHSoptparse-applicative-0.5.2.1
/usr/bin/ld: cannot find -lHSghc-paths-0.1.0.9
/usr/bin/ld: cannot find -lHSfsnotify-0.0.6
/usr/bin/ld: cannot find -lHShinotify-0.3.5
collect2: ld returned 1 exit status
Failed to install yesod-bin-1.2.0
cabal: Error: some packages failed to install:
yesod-bin-1.2.0 failed during the building phase. The exception was:
ExitFailure 1
根据this,我觉得这可能与我不确定的特权有关。
编辑:所以我只找到了以下两个库。
/usr/lib/haskell-packages/ghc/lib/tar-0.3.2.0/ghc-7.4.1/libHStar-0.3.2.0.a
/usr/lib/haskell-packages/ghc/lib/ghc-paths-0.1.0.8/ghc-7.4.1/libHSghc-paths-0.1.0.8.a
我正在尝试将 libghc-tar-dev 更新到最新版本 0.4.0.1。但是,0.3.2.0 是apt-get 上的最新版本,我有什么选择?
【问题讨论】: