gpt4 book ai didi

Haskell SDL-mixer 编译错误

转载 作者:行者123 更新时间:2023-12-02 14:36:02 25 4
gpt4 key购买 nike

我正在尝试使用“cabal install sdl-mixer”来安装 SDL-mixer haskell 软件包。当我这样做时,它给出了错误

Resolving dependencies...
[1 of 1] Compiling Main ( /tmp/SDL-mixer-0.6.1-10381/SDL-mixer-0.6.1/Setup.lhs, /tmp/SDL-mixer-0.6.1-10381/SDL-mixer-0.6.1/dist/setup/Main.o )
Linking /tmp/SDL-mixer-0.6.1-10381/SDL-mixer-0.6.1/dist/setup/setup ...
Configuring SDL-mixer-0.6.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for sdl-config... /usr/bin/sdl-config
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/SDL-mixer-0.6.1-10381/SDL-mixer-0.6.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Failed to install SDL-mixer-0.6.1
cabal: Error: some packages failed to install:
SDL-mixer-0.6.1 failed during the configure step. The exception was:
ExitFailure 77

如果有什么不同的话,我使用的是 Arch Linux。如何安装这个软件包?

最佳答案

确保您已安装 libsdl-mixer 作为先决条件。

关于Haskell SDL-mixer 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16630804/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com