
8 Feb
2011
8 Feb
'11
6:42 a.m.
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