Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eTeak Installation Guide for ghc >6 #2

Open
Mahdi89 opened this issue Oct 25, 2015 · 1 comment
Open

eTeak Installation Guide for ghc >6 #2

Mahdi89 opened this issue Oct 25, 2015 · 1 comment

Comments

@Mahdi89
Copy link
Member

Mahdi89 commented Oct 25, 2015

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

@Mahdi89 Mahdi89 closed this as completed Dec 8, 2015
@Mahdi89
Copy link
Member Author

Mahdi89 commented Jan 15, 2016

Now eTeak can be installed using the Haskell tool stack: https://github.com/commercialhaskell/stack
Thanks to Rob Taylor. This enables the users to install eTeak without concerning about the ghc compatibility issues as were stated above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant