[Haskell-cafe] Can I build and install GHC 6.10.1 withoutprevious installed ghc

Wang, Chunye (NSN - CN/Beijing) chunye.wang at nsn.com
Mon Dec 22 04:53:53 EST 2008

Hi Duncan,

tar -jxvf ghc-6.8.2-x86_64-unknown-linux.tar.bz2 
cd ghc-6.8.2

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Which we'll further canonicalise into: x86_64-unknown-linux
checking for path to top of build tree... pwd: timer_create: Invalid
configure: error: cannot determine current directory

Even though I can fixed this by ``cp /bin/pwd utils/pwd/pwd'' , there is
still similar error

``ghc-pkg.bin: timer_create: Invalid argument''

I guess any executable file generates same error message.

Best Regards
Chunye Wang <chunye.wang at nsn.com>

-----Original Message-----
From: ext Duncan Coutts [mailto:duncan.coutts at worc.ox.ac.uk] 
Sent: Monday, December 22, 2008 5:38 PM
To: Wang, Chunye (NSN - CN/Beijing)
Cc: Haskell-Cafe at haskell.org
Subject: RE: [Haskell-cafe] Can I build and install GHC 6.10.1
withoutprevious installed ghc

On Mon, 2008-12-22 at 11:53 +0800, Wang, Chunye (NSN - CN/Beijing)
> I tried to install the ghc 6.8.0 last year but failed for some reason.

> Now I decide to do it again, because I'd like to try some examples in 
> <<Real World Haskell>> Now I remember why I try to install it from 
> source code, because the binary version has the following problem.

> I guess ``timer_create '' is failed because of library confliction.

I suggest you use the binary for ghc-6.8.2 (not 6.8.3) or earlier
because those were built on an old Red Hat 9 server and are thus
compatible with older versions of glibc and the Linux kernel.

If you really need ghc-6.10 (you probably do not if you're just trying
examples from the Real World Haskell book) then you can build ghc-6.10.x
from source once you have the ghc-6.8.2 binary installed.


More information about the Haskell-Cafe mailing list