Haskell is a pure functional programming language.
Haskell platform is an integrated development environment of Haskell.
This document describes how to install Haskell platform.
Operating System: Ubuntu 12.04.1 lts; Linux 3.2.0-29-generic-pae
1 download Haskell platform and ghc
Http://www.haskell.org/platform/linux.html
The preceding webpage contains and installation methods.
2 install ghc-7.4.1
2.1 decompress ghc-7.4.1-i386-unknown-linux.tar.bz2
2.2 CD ghc-7.4.1
2.3./configure
Error message:
checking for path to top of build tree... utils/ghc-pwd/dist/build/tmp/ghc-pwd: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directoryconfigure: error: cannot determine current directory
Solution:
Sudo apt-Get install libgmp3-dev
Sudo apt-Get install libgmp3c2
./Cofigure
No error this time
2.4 sudo make install
2.5 ghc -- version
If this step is given
"The glorious Glasgow Haskell compilation system, version 7.4.1"
It indicates that the installation is correct.
3. Install Haskell-Platform
3.1 unzip haskell-platform-2012.2.0.0.tar.gz
3.2./configure
Error message:
Configure: error: the OpenGL C library is required
Solution:
Sudo apt-Get install libglc-Dev
./Configure
Error message:
Configure: error: the glut C library is required
Solution:
Sudo apt-Get install freeglut3-dev
./Configure
No error message is provided.
3.2 sudo make
3.3 sudo make install
3.4 cabal update
Summary:
1 install Trusted package: libgmp3-dev libgmp3c2 libglc-dev freeglut3-dev
2. Pay attention to the feedback after each command is executed.
References:
1 Haskell introduction and various installation methods: http://blog.csdn.net/albert_lee/article/details/5469933
2 Haskell wiki: http://www.haskell.org/haskellwiki/Haskell
3 Haskell Chinese community: http://www.haskellcn.org/