Haskell Platform Installation Process

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.