[Haskell-cafe] Building Plaftorm 2010 2 on 64bit Linux

Christian Maeder Christian.Maeder at dfki.de
Tue Feb 8 12:42:39 CET 2011


Am 08.02.2011 11:39, schrieb Dušan Kolář:
> ghc -O2 --make test.hs -o test
> [1 of 1] Compiling Main             ( test.hs, test.o )
> ghc: could not execute: /usr/bin/gcc
> 
> Even if I can easily compile gcc testc.c -o testc and run testc.

Your ghc script (under /usr/local/bin or elsewhere "type -all ghc")
contains a line:

  pgmgcc="/usr/bin/gcc"

This line should be corrected to point to your gcc that is probably not
under /usr/bin/. Try by "which gcc" or "type -all gcc".

(The official binaries only work for "sane systems".)

HTH Christian




More information about the Haskell-Cafe mailing list