-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Installing ghc and cabal:
1- Download and Install ghc 7.4.1 from source (www.haskell.org/ghc/dist/7.4.1/ (filename due to architecture) )
- Note:After installing, the ghc installation path should be linked to ghc via ln -s.
- Note:The ghc installation path should be added to PATH environment variable.
2- Download and Install cabal 1.18.1.6 from source (www.haskell.org/cabal/release/cabal-1.18.1.6/Cabal-1.18.1.6.tar.gz )
- Note: build cabal with ghc like below:
ghc --make Setup.hs
./Setup configure --user
./Setup build
./Setup install - Note: Before installing cabal, remove old packages if they exist.
3- Download and Install cabal-install version 1.18.1.0 from source (https://www.haskell.org/cabal/release/cabal-install-1.18.1.0/ cabal-install-1.18.1.0.tar.gz)
- Note: Add cabal to path environment variable
Adding gtk and gtk2hs build tools:
4- Install the following libraries:
- Libglib2.0-dev, libcairo2.0-dev, libpango1.0-dev, libgtk2.0-dev, libglade2.0-dev
5- Install alex and happy packages with cabal install.
6- Install glade with cabal install - Note:glade will install all the packages for gtk2hs itself. The version is 0.12.1 which is ok.
- Note: By installing gtk2hs-buildtools and gtk with cabal install separately, Theversion would be 0.13 which is not compatible with eTeak.
The modules such as Array, Monad, etc could not be compiled with ghc version later than 6. They should be specifically defined with their associated libraries: Data.Array, control.Monad...
Ghc compiler with version later than 7.4.1 has compatibility issue with compiling bits.hs therefore ghc 7.4.1 needs to be considered.
Pre-requirements: libgmp-dev , libgmp3-dev , zlib1g-dev
Note: libgmp.so.10 library should be linked to libgmp.so.10 library with ln -s command