Download source tarball from http://haskell.org/ghc/dist/7.0.1/ghc-7.0.1-src.tar.bz2
Extract it!
At this stage, i already installed ghc version 6.10.4 installed via binary port mechanics (something like: pkg_add -r ghc) and cabal-install-0.8.2 via source manually.
On the first gmake run, i hit error on iconv not found, so install it.
The next, error on gmp can not relocated or something. I have installed gmp-5.0.1 installed via port in math/gmp.
So here the configure and make command which finally finish without error:
./configure --with-iconv-includes=/usr/local/include --with-iconv-libraries=/usr/local/lib --with-gmp-includes=/usr/local/include --with-gmp-libraries=/usr/local/lib --prefix=/usr/local/ghc7
gmake -j5 LDFLAGS="-L/usr/local/lib -I/usr/local/include"
gmake install
It took about 50 minutes on standard HP ML115 single dual-core 2.2GHz and 8GB memory.
0 komentar:
Poskan Komentar