Skip to content

Instantly share code, notes, and snippets.

@Dexyne
Last active December 1, 2023 09:39
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Dexyne/5791465 to your computer and use it in GitHub Desktop.
Save Dexyne/5791465 to your computer and use it in GitHub Desktop.
Install Haskell (haskell-plateform-2013.2.0.0 + GHC 7.6.3) on Ubuntu 13.04.

Install GHC 7.6.3

# Terminal
$ cd /path/to/ghc/ # replace by the right directory
$ ./configure

if you see this error:

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 directory
configure: error: cannot determine current directory

use:

# Terminal
$ sudo apt-get install libgmp3c2
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5 /usr/lib/libgmp.so.3
$ ./configure
$ (sudo) make install

Install haskell-plateform (2013.2.0.0)

# Terminal
$ cd /path/to/haskell-platform/ # replace by the right directory
$ ./configure
$ make
$ sudo make install

make the default configuration to cabal:

# Terminal
$ cabal update

Enjoy!

@adamgordonbell
Copy link

This was greatly helpful. I couldn't apt-get libgmp3cc2 though, but for anyone else it can be downloaded from ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz and make and install it

@chrisprobst
Copy link

This one really helped!

Here is very simple build script which can be seen as a summary of your gist:

https://github.com/chrisprobst/ubuntu-rating-haskell

@Dexyne
Copy link
Author

Dexyne commented Jul 4, 2013

I'm glad that could help you :).

When I try to install Haskell I had some problems and this method works for me.

@AndrewWUw
Copy link

Thanks for this detailed instruction. The libmgmp3c2 really took me a long time to looking & install. But I finally got it installed on my Ubuntu 13.04 box, the download link is: http://pkgs.org/debian-squeeze/debian-main-i386/libgmp3c2_4.3.2+dfsg-1_i386.deb.html. Now the ghc installs smoothly.

@Barbery
Copy link

Barbery commented Dec 17, 2013

thinks for your share, it help me a lot~

@Dexyne
Copy link
Author

Dexyne commented Dec 18, 2013

You're welcome! :)

@siuling88
Copy link

Thanks!!!!!!!!!!!!!!! =D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment