Haskell SDL-mixer compilation error

I am trying to install the haskell SDL-mixer package using "cabal install sdl-mixer". When I do this, it gives an error

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 

If that matters, I'm on Arch Linux. How to install this package?

+4
source share
2 answers

make sure you install libsdl-mixer as a prerequisite.

+2
source

Got the same symptoms on the package network on ubuntu 12.04. This was called / usr / bin / ld, which is gold instead of ld.bfd. Passing --with-ld = ld.bfd seems to be insufficient for some packages.

Workaround:

 mkdir /tmp/ld_override ln -s /usr/bin/ld.bfd /tmp/ld_override/ld PATH=/tmp/ld_override:$PATH cabal install ... 
+1
source

Source: https://habr.com/ru/post/1481578/


All Articles