Question:
Haskell on ubuntu 8.04 problems?
Neo
2009-06-14 21:46:41 UTC
I am a newbie to linux and am trying to install haskell on ubuntu. I downloaded the ghc compiler (http://haskell.org/ghc/dist/6.10.3/ghc-6.10.3-i386-unknown-linux-n.tar.bz2) from http://haskell.org/ghc/download_ghc_6_10_3.html. After installing as per the instructions in the folder, i tried running compiling a haskell code by typing "ghc try.hs" and i got an error

/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status

what exactly is wrong??
Three answers:
Linux Mint 11
2009-06-15 04:21:44 UTC
Here is the Ubuntu wiki Haskell Documentation

https://wiki.ubuntu.com/MOTU/Teams/UncommonProgrammingLanguages/Haskel



LUg.
jplatt39
2009-06-14 23:57:51 UTC
I suppose it's time for the scolding. Go to your distro repositories FIRST to install ANY package. In Ubuntu's case this would mean you get DEB packages, NOT TAR.GZ packages. No I am not sorry I shouted. I'm on Debian, which is so close to Ubuntu an Ubuntu chauvinist I know called his OS "Debian with Fancy eye candy" (even though it's more than that) and here is a PARTIAL list of what when I typed "apt-cache search ghc"



ghc6 - GHC - the Glasgow Haskell Compilation system

ghc6-doc - Documentation for the Glasgow Haskell Compilation system

ghc6-prof - Profiling libraries for the Glasgow Haskell Compilation system

gtk2-engines - theme engines for GTK+ 2.x

gtk2hs-doc - A GUI library for Haskell (Gtk2Hs) -- documentation and examples

haskell-filepath-doc - Transitional package

haskell-mode - A major mode for editing Haskell in Emacs

hmake - The Haskell Make System

hugs - A Haskell 98 interpreter

libghc6-alut-dev - Haskell ALUT binding for GHC

libghc6-alut-doc - Haskell ALUT binding for GHC; documentation

libghc6-alut-prof - Haskell ALUT binding for GHC; profiling libraries

libghc6-anydbm-dev - Generic DBM-type interface for Haskell, GHC package

libghc6-arrows-dev - Haskell arrow classes and transformers for GHC

libghc6-arrows-doc - Haskell arrow classes and transformers for GHC; documentation

libghc6-arrows-prof - Haskell arrow classes and transformers for GHC; profiling libraries

libghc6-binary-dev - Haskell library for binary serialisation using lazy ByteStrings

libghc6-binary-doc - Haskell library for binary serialisation; documentation



It is because of these dependency issues that we HAVE distros. So don't just throw the advantage away. (actually if you look in the directory you were in you will see packages to fix this, but it's better to go through the repositories).
johntrottier
2009-06-14 21:53:13 UTC
Your missing a library

Check the haskell.org forums. They will be your best bet for a quick answer


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...