asg*_*451 5 haskell cabal cabal-install sdl-2
我正在尝试安装helm.当我尝试安装它时,我收到此错误:
$ cabal install helm
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found.
Failed to install sdl2-1.1.0
cabal: Error: some packages failed to install:
helm-0.6.1 depends on sdl2-1.1.0 which failed to install.
sdl2-1.1.0 failed during the configure step. The exception was:
ExitFailure 1
Run Code Online (Sandbox Code Playgroud)
当我自己安装sdl2时,我收到了类似的消息.
$ cabal install sdl2
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found.
Failed to install sdl2-1.1.0
cabal: Error: some packages failed to install:
sdl2-1.1.0 failed during the configure step. The exception was:
ExitFailure 1
Run Code Online (Sandbox Code Playgroud)
我不明白.根据Hackage,sdl2的版本是1.1,但安装它需要2.0.3版本?我已经在沙箱中进行了尝试.ghc-pkg list如果你认为它们是相关的,那么结果就在这里:http://pastebin.com/tFrsfPFe
我在Ubuntu顺便说一下.
救命?
小智 4
对于其他安装可能发生的另一件事(发生在我身上)是 PKG_CONFIG_PATH 变量可能不会指向包配置文件(sdl2.pc,对我来说位于 /usr/local/lib/pkgconfig 目录中)。pkg-config 使用一些默认目录('/usr/lib/pkgconfig' 和 '/usr/share/pkgconfig'),但如果 sdl.pc 文件不在其中之一,则必须指定目录在环境变量中。你可以检查一下echo $PKG_CONFIG_PATH
如果您需要设置变量,只需使用export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig(或 sdl2.pc 文件所在的任何目录)
| 归档时间: |
|
| 查看次数: |
1548 次 |
| 最近记录: |