[Haskell-cafe] Can't install Haskell Platform on 64-bit Linux

Colin Paul Adams colin at colina.demon.co.uk
Tue Aug 18 05:25:34 EDT 2009


I installed GHC 6.10.4 (as ./configure said it was required) from a
.bz2 file on the GHC downloads page. I then tried ./configure for the
platform again, and got:

checking ghc actually works... no
configure: error: Your installation of ghc does not appear to work.
  It cannot compile a simple program (see config.log for the details).
  If you installed ghc from a generic binary tarball then it is worth
  checking that you have the 'gmp' C library and header files installed.
  (On debian-based systems this package is called libgmp3-dev.)

Looking in config.log, I see:

configure:2287: checking ghc actually works
configure:2296: /usr/local/bin/ghc -o conftest conftest.hs
/tmp/ghc22651_0/ghc22651_0.s: Assembler messages:

/tmp/ghc22651_0/ghc22651_0.s:43:0:
     Error: suffix or operands invalid for `push'

/tmp/ghc22651_0/ghc22651_0.s:89:0:
     Error: suffix or operands invalid for `push'

/tmp/ghc22651_0/ghc22651_0.s:135:0:
     Error: suffix or operands invalid for `push'
configure:2299: $? = 1
configure: failed program was:
main = putStr "Hello world!\n"
-- this file generated by TRY-COMPILE-GHC
end of failed program.
configure:2308: result: no
configure:2314: error: Your installation of ghc does not appear to work.
  It cannot compile a simple program (see config.log for the details).
  If you installed ghc from a generic binary tarball then it is worth
  checking that you have the 'gmp' C library and header files installed.
  (On debian-based systems this package is called libgmp3-dev.)

Libgmp is installed.

I don't know the significance of the assembler error messages. If I
type from the command line:

ghci

I get the Prelude> prompt, so it looks like the installation is OK at
first glance.

What should I check next?
-- 
Colin Adams
Preston Lancashire


More information about the Haskell-Cafe mailing list