WebFaction
Community site: login faq

Hello,

this is not a question, it is just to share my experience.

in case someone wants to install haskell, here is how I built the latest GHC (7.0.3) from source:

  1. install GHC 6 (taken from http://blog.syntaxvssemantics.com/2010/03/installing-ghc-6104-on-webfaction.html):

    cd
    mkdir t
    cd t
    wget http://haskell.org/ghc/dist/6.10.4/ghc-6.10.4-i386-unknown-linux-n.tar.bz2
    bunzip2 ghc-6.10.4-i386-unknown-linux-n.tar.bz2
    tar -xvf ghc-6.10.4-i386-unknown-linux-n.tar
    cd ghc-6.10.4
    ./configure --prefix=$HOME/ghc6
    make install
    cd
    rm -r t
    

  2. add the path to GHC 6 to your $PATH:

    PATH=$HOME/ghc6/bin:$PATH

  3. install the latest GHC from source:

    cd
    mkdir t
    cd t
    wget http://haskell.org/ghc/dist/7.0.3/ghc-7.0.3-src.tar.bz2
    bunzip2 ghc-7.0.3-src.tar.bz2
    tar -xvf ghc-7.0.3-src.tar
    cd ghc-7.0.3
    ./configure --prefix=$HOME/ghc
    make
    make install
    cd
    rm -r t
    

  4. you do not need GHC 6 anymore:

    cd
    rm -r ghc6
    

  5. in your .bashrc (or whatever shell you are using) add $HOME/ghc/bin to your $PATH

hope this helps

Konstantin

asked 26 Aug '11, 23:52

akonsu
64614
accept rate: 100%

edited 27 Aug '11, 12:17

Thanks for writing this!

(26 Aug '11, 23:56) neeravk

Thanks for the instructions!

To install 7.4.2 (latest as of Sep 2012) use:

  • 6.12.3 binary: http://www.haskell.org/ghc/dist/6.12.3/ghc-6.12.3-i386-unknown-linux-n.tar.bz2
  • 7.4.2 sources: http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-src.tar.bz2
(01 Sep '12, 05:38) Maciek Makowski

The question is the answer :)

permanent link

answered 28 Aug '11, 11:17

seanf
12.2k42136
accept rate: 37%

Does not work for me:

[ftomassetti@web371 ghc-6.10.4]$ ./configure --prefix=$HOME/ghc6
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Which we'll further canonicalise into: x86_64-unknown-linux
checking for path to top of build tree... ./configure: utils/pwd/pwd: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
configure: error: cannot determine current directory
permanent link

answered 20 Mar '15, 15:42

Federico Tom...
336
accept rate: 0%

edited 20 Mar '15, 17:51

seanf
12.2k42136

These instructions are a little old, and the reason you have this error is that you are trying to build the 32bit version on a 64bit server. Try this version instead:

http://haskell.org/ghc/dist/6.10.4/ghc-6.10.4-x86_64-unknown-linux-n.tar.bz2

Then amend the lines with the new file name.

(21 Mar '15, 00:54) NickR ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7
×3

question asked: 26 Aug '11, 23:52

question was seen: 2,478 times

last updated: 21 Mar '15, 00:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM