I've recently built 6.10.1 on fairly archaic RHEL servers, both 64 and 32 bit, and the incantation that worked most seamlessly for me was to grab a really old binary release (in my case 6.2 worked) that installs without intervention, and then build up to the latest version (6.10.1) in steps -- I built 6.6 with 6.2, then 6.10.1 with 6.6, and it all worked without a problem. Of course, I'd try 6.6/binary first, but if that doesn't work, all is not lost, older binary releases may still work, and you can then bootstrap from those.
Rob ----- Original Message ---- From: "Wang, Chunye (NSN - CN/Beijing)" <chunye.w...@nsn.com> To: Haskell-Cafe@haskell.org Sent: Monday, December 22, 2008 4:53:53 AM Subject: RE: [Haskell-cafe] Can I build and install GHC 6.10.1 withoutprevious installed ghc Hi Duncan, wget http://haskell.org/ghc/dist/6.8.2/ghc-6.8.2-x86_64-unknown-linux.tar.bz2 tar -jxvf ghc-6.8.2-x86_64-unknown-linux.tar.bz2 cd ghc-6.8.2 ./configure 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 argument 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.w...@nsn.com> -----Original Message----- From: ext Duncan Coutts [mailto:duncan.cou...@worc.ox.ac.uk] Sent: Monday, December 22, 2008 5:38 PM To: Wang, Chunye (NSN - CN/Beijing) Cc: Haskell-Cafe@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) wrote: > > 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. Duncan _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe