Skip to content

Instantly share code, notes, and snippets.

@maxlazio
Forked from yantonov/install-ghc-ubuntu.md
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save maxlazio/5130852afedaa028dd23 to your computer and use it in GitHub Desktop.

Select an option

Save maxlazio/5130852afedaa028dd23 to your computer and use it in GitHub Desktop.

Revisions

  1. @yantonov yantonov revised this gist Feb 17, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -12,8 +12,12 @@ ghc installation

    # get distr
    cd $HOME/Downloads
    # 64 bit
    wget https://downloads.haskell.org/~ghc/7.8.4/ghc-7.8.4-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.4-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.4-x86_64-unknown-linux-deb7.tar.bz2
    # 32 bit
    # wget https://downloads.haskell.org/~ghc/7.8.4/ghc-7.8.4-i386-unknown-linux-deb7.tar.bz2
    # tar xvfj ghc-7.8.4-i386-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.4

    # install to
  2. @yantonov yantonov revised this gist Feb 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ubuntu prerequisites

    # Multiprecision arithmetic library developers tools
    sudo apt-get install libgmp-dev -y
    sudo apt-get install libgmp-dev zlib1g-dev -y
    sudo -K

    ghc installation
  3. @yantonov yantonov revised this gist Jan 28, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -88,5 +88,5 @@ ghc installation
    rm -rf cabal-install-1.22.0.0*

    # add path to cabal to PATH environment
    CABAL_HOME=$HOME/cabal
    CABAL_HOME=$HOME/.cabal
    PATH=$CABAL_HOME/bin:$PATH
  4. @yantonov yantonov revised this gist Jan 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -72,7 +72,7 @@ ghc installation
    ghc-pkg --user recache
    fi

    # get distributive
    # get distributive
    cd $HOME/Downloads
    curl -O https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-install-1.22.0.0.tar.gz

  5. @yantonov yantonov revised this gist Jan 8, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -67,10 +67,10 @@ ghc installation

    #### cabal-install

    # remove ghc cache (in case of reinstall)
    if [ -d "$HOME/.ghc/" ]; then
    # remove ghc cache (in case of reinstall)
    if [ -d "$HOME/.ghc/" ]; then
    ghc-pkg --user recache
    fi
    fi

    # get distributive
    cd $HOME/Downloads
  6. @yantonov yantonov revised this gist Jan 8, 2015. 1 changed file with 33 additions and 28 deletions.
    61 changes: 33 additions & 28 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### How to install latest GHC 7.8.3 + cabal 1.20.3 on ubuntu
    ### How to install latest GHC 7.8.4 + cabal 1.22 on ubuntu

    ### ghc

    @@ -12,21 +12,21 @@ ghc installation

    # get distr
    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.3
    wget https://downloads.haskell.org/~ghc/7.8.4/ghc-7.8.4-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.4-x86_64-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.4

    # install to
    mkdir $HOME/Development/bin/ghc-7.8.3
    mkdir $HOME/Development/bin/ghc-7.8.4
    # or choose another path

    ./configure --prefix=$HOME/Development/bin/ghc-7.8.3
    ./configure --prefix=$HOME/Development/bin/ghc-7.8.4

    make install

    # symbol links
    cd $HOME/Development/bin
    ln -s `pwd`/ghc-7.8.3 ghc
    ln -s `pwd`/ghc-7.8.4 ghc

    # add $HOME/Development/bin/ghc to $PATH
    # add this line to ~/.profile
    @@ -38,7 +38,7 @@ ghc installation

    # remove temporary files
    cd $HOME/Downloads
    rm -rf ghc-7.8.3*
    rm -rf ghc-7.8.4*

    ### cabal (package manager for haskell)

    @@ -49,39 +49,44 @@ ghc installation

    # clone dist
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.3/Cabal-1.20.0.3.tar.gz
    # extract
    tar xzvf Cabal-1.20.0.3.tar.gz
    cd Cabal-1.20.0.3
    curl -O https://www.haskell.org/cabal/release/cabal-1.22.0.0/Cabal-1.22.0.0.tar.gz

    # build
    ghc --make Setup.hs
    ./Setup configure --user
    ./Setup build
    # extract
    tar xzvf Cabal-1.22.0.0.tar.gz
    cd Cabal-1.22.0.0

    # build
    ghc --make Setup.hs
    ./Setup configure --user
    ./Setup build
    ./Setup install

    # remove temporary files
    cd $HOME/Downloads
    rm -rf Cabal-1.20.0.3*
    # Remove temporary files
    cd $HOME/Downloads
    rm -rf Cabal-1.22.0.0*

    #### cabal-install

    # get distributive
    # remove ghc cache (in case of reinstall)
    if [ -d "$HOME/.ghc/" ]; then
    ghc-pkg --user recache
    fi

    # get distributive
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz
    curl -O https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-install-1.22.0.0.tar.gz

    # extract archive
    tar xzvf cabal-install-1.20.0.3.tar.gz
    cd cabal-install-1.20.0.3
    tar xzvf cabal-install-1.22.0.0.tar.gz
    cd cabal-install-1.22.0.0

    # install
    ./bootstrap.sh

    # remove temporary files
    cd $HOME/Downloads
    rm -rf cabal-install-1.20.0.3*
    rm -rf cabal-install-1.22.0.0*

    # add path to cabal to PATH environment
    # add this into ~/.profile
    export CABAL_HOME=$HOME/.cabal
    export PATH=$CABAL_HOME/bin:$PATH
    # add path to cabal to PATH environment
    CABAL_HOME=$HOME/cabal
    PATH=$CABAL_HOME/bin:$PATH
  7. @yantonov yantonov revised this gist Dec 28, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -49,10 +49,10 @@ ghc installation

    # clone dist
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.2/Cabal-1.20.0.2.tar.gz
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.3/Cabal-1.20.0.3.tar.gz
    # extract
    tar xzvf Cabal-1.20.0.2.tar.gz
    cd Cabal-1.20.0.2
    tar xzvf Cabal-1.20.0.3.tar.gz
    cd Cabal-1.20.0.3

    # build
    ghc --make Setup.hs
    @@ -62,7 +62,7 @@ ghc installation

    # remove temporary files
    cd $HOME/Downloads
    rm -rf Cabal-1.20.0.2*
    rm -rf Cabal-1.20.0.3*

    #### cabal-install

  8. @yantonov yantonov revised this gist Oct 28, 2014. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -28,9 +28,13 @@ ghc installation
    cd $HOME/Development/bin
    ln -s `pwd`/ghc-7.8.3 ghc

    # add $HOME/Development/bin/ghc to $PATH
    GHC_HOME=$HOME/Development/bin/ghc
    PATH=$GHC_HOME/bin:${PATH}
    # add $HOME/Development/bin/ghc to $PATH
    # add this line to ~/.profile
    export GHC_HOME=$HOME/Development/bin/ghc
    export PATH=$GHC_HOME/bin:${PATH}

    # to use updated path without log off
    source ~/.profile

    # remove temporary files
    cd $HOME/Downloads
    @@ -78,5 +82,6 @@ ghc installation
    rm -rf cabal-install-1.20.0.3*

    # add path to cabal to PATH environment
    CABAL_HOME=$HOME/.cabal
    PATH=$CABAL_HOME/bin:$PATH
    # add this into ~/.profile
    export CABAL_HOME=$HOME/.cabal
    export PATH=$CABAL_HOME/bin:$PATH
  9. @yantonov yantonov revised this gist Oct 21, 2014. 1 changed file with 38 additions and 37 deletions.
    75 changes: 38 additions & 37 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -4,78 +4,79 @@

    ubuntu prerequisites

    # Multiprecision arithmetic library developers tools
    sudo apt-get install libgmp-dev -y
    # Multiprecision arithmetic library developers tools
    sudo apt-get install libgmp-dev -y
    sudo -K

    ghc installation

    # get distr
    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    # get distr
    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.3

    # install to
    mkdir $HOME/Development/bin/ghc-7.8.3
    # install to
    mkdir $HOME/Development/bin/ghc-7.8.3
    # or choose another path

    ./configure --prefix=$HOME/Development/bin/ghc-7.8.3

    make install

    # symbol links
    cd $HOME/Development/bin
    # symbol links
    cd $HOME/Development/bin
    ln -s `pwd`/ghc-7.8.3 ghc

    # add $HOME/Development/bin/ghc to $PATH
    $ PATH=$HOME/Development/bin/ghc/bin:${PATH}
    # add $HOME/Development/bin/ghc to $PATH
    GHC_HOME=$HOME/Development/bin/ghc
    PATH=$GHC_HOME/bin:${PATH}

    # remove temporary files
    cd $HOME/Downloads
    rm ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    rm -rf ghc-7.8.3
    # remove temporary files
    cd $HOME/Downloads
    rm -rf ghc-7.8.3*

    ### cabal (package manager for haskell)

    # remove old
    # remove old
    rm -rf $HOME/.cabal

    #### cabal library

    # clone dist
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.2/Cabal-1.20.0.2.tar.gz
    # extract
    tar xzvf Cabal-1.20.0.2.tar.gz
    # clone dist
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.2/Cabal-1.20.0.2.tar.gz
    # extract
    tar xzvf Cabal-1.20.0.2.tar.gz
    cd Cabal-1.20.0.2

    # build
    ghc --make Setup.hs
    ./Setup configure --user
    ./Setup build
    # build
    ghc --make Setup.hs
    ./Setup configure --user
    ./Setup build
    ./Setup install

    # remove temporary files
    cd $HOME/Downloads
    # remove temporary files
    cd $HOME/Downloads
    rm -rf Cabal-1.20.0.2*

    #### cabal-install

    # get distributive
    cd $HOME/Downloads
    # get distributive
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz

    # extract archive
    tar xzvf cabal-install-1.20.0.3.tar.gz
    # extract archive
    tar xzvf cabal-install-1.20.0.3.tar.gz
    cd cabal-install-1.20.0.3

    # install
    # install
    ./bootstrap.sh

    # remove temporary files
    cd $HOME/Downloads
    # remove temporary files
    cd $HOME/Downloads
    rm -rf cabal-install-1.20.0.3*

    # add path to cabal to PATH environment
    $ PATH=$HOME/.cabal/bin:$PATH
    # add path to cabal to PATH environment
    CABAL_HOME=$HOME/.cabal
    PATH=$CABAL_HOME/bin:$PATH
  10. @yantonov yantonov revised this gist Oct 21, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -38,6 +38,9 @@ ghc installation

    ### cabal (package manager for haskell)

    # remove old
    rm -rf $HOME/.cabal

    #### cabal library

    # clone dist
    @@ -58,9 +61,6 @@ ghc installation
    rm -rf Cabal-1.20.0.2*

    #### cabal-install

    # remove old
    rm -rf $HOME/.cabal

    # get distributive
    cd $HOME/Downloads
  11. @yantonov yantonov revised this gist Oct 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### How to install latest GHC 7.8.3 + cabal 1.20.2 on ubuntu
    ### How to install latest GHC 7.8.3 + cabal 1.20.3 on ubuntu

    ### ghc

  12. @yantonov yantonov revised this gist Oct 21, 2014. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -55,8 +55,7 @@ ghc installation

    # remove temporary files
    cd $HOME/Downloads
    rm Cabal-1.20.0.0.tar.gz
    rm -rf Cabal-1.20.0.0
    rm -rf Cabal-1.20.0.2*

    #### cabal-install

    @@ -76,8 +75,7 @@ ghc installation

    # remove temporary files
    cd $HOME/Downloads
    rm cabal-install-1.20.0.0.tar.gz
    rm -rf cabal-install-1.20.0.0
    rm -rf cabal-install-1.20.0.3*

    # add path to cabal to PATH environment
    $ PATH=$HOME/.cabal/bin:$PATH
  13. @yantonov yantonov revised this gist Aug 16, 2014. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ ubuntu prerequisites
    sudo apt-get install libgmp-dev -y
    sudo -K

    ghc distr installation
    ghc installation

    # get distr
    cd $HOME/Downloads
    @@ -59,6 +59,9 @@ ghc distr installation
    rm -rf Cabal-1.20.0.0

    #### cabal-install

    # remove old
    rm -rf $HOME/.cabal

    # get distributive
    cd $HOME/Downloads
  14. @yantonov yantonov revised this gist Aug 16, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -10,11 +10,13 @@ ubuntu prerequisites

    ghc distr installation

    # get distr
    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.3

    # install to
    mkdir $HOME/Development/bin/ghc-7.8.3
    # or choose another path

  15. @yantonov yantonov revised this gist Aug 16, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,8 @@ ubuntu prerequisites
    sudo apt-get install libgmp-dev -y
    sudo -K

    # ghc distr
    ghc distr installation

    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
  16. @yantonov yantonov revised this gist Aug 16, 2014. 1 changed file with 47 additions and 60 deletions.
    107 changes: 47 additions & 60 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,90 +1,77 @@
    ### How to install latest GHC 7.8.2 + cabal 1.20 on ubuntu
    ### How to install latest GHC 7.8.3 + cabal 1.20.2 on ubuntu

    ### ghc

    ubuntu prerequisites

    # Multiprecision arithmetic library developers tools
    $ sudo apt-get install libgmp-dev -y
    $ sudo -K
    sudo apt-get install libgmp-dev -y
    sudo -K

    ghc installation
    # ghc distr
    cd $HOME/Downloads
    wget http://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    tar xvfj ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    cd ghc-7.8.3

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    $ tar xjvf ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    $ cd ghc-7.8.2

    $ ./configure --prefix=$HOME/Development/bin/ghc-7.8.2
    mkdir $HOME/Development/bin/ghc-7.8.3
    # or choose another path

    $ make install

    symbol links

    $ cd $HOME/Development/bin
    $ ln -s `pwd`/ghc-7.8.2 ghc

    add $HOME/Development/bin/ghc to $PATH
    ./configure --prefix=$HOME/Development/bin/ghc-7.8.3

    make install

    # symbol links
    cd $HOME/Development/bin
    ln -s `pwd`/ghc-7.8.3 ghc

    # add $HOME/Development/bin/ghc to $PATH
    $ PATH=$HOME/Development/bin/ghc/bin:${PATH}

    remove temporary files

    # remove temporary files
    cd $HOME/Downloads
    rm ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    rm -rf ghc-7.8.2
    rm ghc-7.8.3-x86_64-unknown-linux-deb7.tar.bz2
    rm -rf ghc-7.8.3

    ### cabal (package manager for haskell)

    #### cabal library

    clone dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-1.20.0.0/Cabal-1.20.0.0.tar.gz

    extract

    $ tar xzvf Cabal-1.20.0.0.tar.gz
    $ cd Cabal-1.20.0.0

    build

    $ ghc --make Setup.hs
    $ ./Setup configure --user
    $ ./Setup build
    $ ./Setup install

    remove temporary files
    # clone dist
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-1.20.0.2/Cabal-1.20.0.2.tar.gz
    # extract
    tar xzvf Cabal-1.20.0.2.tar.gz
    cd Cabal-1.20.0.2

    # build
    ghc --make Setup.hs
    ./Setup configure --user
    ./Setup build
    ./Setup install

    # remove temporary files
    cd $HOME/Downloads
    rm Cabal-1.20.0.0.tar.gz
    rm -rf Cabal-1.20.0.0

    #### cabal-install

    get dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.0/cabal-install-1.20.0.0.tar.gz

    extract

    $ tar xzvf cabal-install-1.20.0.0.tar.gz
    $ cd cabal-install-1.20.0.0

    install

    $ ./bootstrap.sh

    remove temporary files

    # get distributive
    cd $HOME/Downloads
    wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz

    # extract archive
    tar xzvf cabal-install-1.20.0.3.tar.gz
    cd cabal-install-1.20.0.3

    # install
    ./bootstrap.sh

    # remove temporary files
    cd $HOME/Downloads
    rm cabal-install-1.20.0.0.tar.gz
    rm -rf cabal-install-1.20.0.0

    add path to cabal to PATH environment


    # add path to cabal to PATH environment
    $ PATH=$HOME/.cabal/bin:$PATH

  17. @yantonov yantonov revised this gist Jul 18, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### install latest GHC 7.8.2 + cabal 1.20 on ubuntu
    ### How to install latest GHC 7.8.2 + cabal 1.20 on ubuntu

    ### ghc

  18. @yantonov yantonov revised this gist Jun 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### install GHC 7.8.2 + cabal 1.20 on ubuntu
    ### install latest GHC 7.8.2 + cabal 1.20 on ubuntu

    ### ghc

  19. @yantonov yantonov revised this gist Jun 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### install latest Haskell GHC 7.8.2 + cabal 1.20 on ubuntu
    ### install GHC 7.8.2 + cabal 1.20 on ubuntu

    ### ghc

  20. @yantonov yantonov revised this gist Jun 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### install latest GHC on ubuntu
    ### install latest Haskell GHC 7.8.2 + cabal 1.20 on ubuntu

    ### ghc

  21. @yantonov yantonov revised this gist Apr 22, 2014. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -43,10 +43,13 @@ clone dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-1.20.0.0/Cabal-1.20.0.0.tar.gz

    extract

    $ tar xzvf Cabal-1.20.0.0.tar.gz
    $ cd Cabal-1.20.0.0

    building
    build

    $ ghc --make Setup.hs
    $ ./Setup configure --user
    @@ -75,6 +78,12 @@ install

    $ ./bootstrap.sh

    remove temporary files

    cd $HOME/Downloads
    rm cabal-install-1.20.0.0.tar.gz
    rm -rf cabal-install-1.20.0.0

    add path to cabal to PATH environment

    $ PATH=$HOME/.cabal/bin:$PATH
  22. @yantonov yantonov revised this gist Apr 22, 2014. 1 changed file with 23 additions and 16 deletions.
    39 changes: 23 additions & 16 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -37,38 +37,45 @@ remove temporary files

    ### cabal (package manager for haskell)

    #### cabal library

    clone dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-1.18.1.3/Cabal-1.18.1.3.tar.gz
    $ tar xzvf Cabal-1.18.1.3.tar.gz
    $ cd Cabal-1.18.1.3
    $ wget http://www.haskell.org/cabal/release/cabal-1.20.0.0/Cabal-1.20.0.0.tar.gz
    $ tar xzvf Cabal-1.20.0.0.tar.gz
    $ cd Cabal-1.20.0.0

    building (from README for cabal)
    building

    $ ghc --make Setup.hs
    $ ./Setup configure --user
    $ ./Setup build
    $ ./Setup install

    build
    remove temporary files

    cd $HOME/Downloads
    rm Cabal-1.20.0.0.tar.gz
    rm -rf Cabal-1.20.0.0

    $ ghc -threaded --make Setup
    $ ./Setup configure --user
    $ ./Setup build
    $ ./Setup install
    #### cabal-install

    cabal-install
    get dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.0/cabal-install-1.20.0.0.tar.gz

    extract

    $ tar xzvf cabal-install-1.20.0.0.tar.gz
    $ cd cabal-install-1.20.0.0

    install

    $ cd ../cabal-install
    $ ./bootstrap.sh

    add path to cabal to PATH environment

    $ PATH=$HOME/.cabal/bin:$PATH

    remove temporary files

    cd $HOME/Downloads
    rm Cabal-1.18.1.3.tar.gz
    rm -rf Cabal-1.18.1.3
  23. @yantonov yantonov revised this gist Apr 16, 2014. 1 changed file with 17 additions and 5 deletions.
    22 changes: 17 additions & 5 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -11,24 +11,30 @@ ubuntu prerequisites
    ghc installation

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/ghc/dist/7.8.1/ghc-7.8.1-x86_64-unknown-linux-deb7.tar.bz2
    $ tar xjvf ghc-7.8.1-x86_64-unknown-linux-deb7.tar.bz2
    $ cd ghc-7.8.1
    $ wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    $ tar xjvf ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    $ cd ghc-7.8.2

    $ ./configure --prefix=$HOME/Development/bin/ghc-7.8.1
    $ ./configure --prefix=$HOME/Development/bin/ghc-7.8.2
    # or choose another path

    $ make install

    symbol links

    $ cd $HOME/Development/bin
    $ ln -s `pwd`/ghc-7.8.1 ghc
    $ ln -s `pwd`/ghc-7.8.2 ghc

    add $HOME/Development/bin/ghc to $PATH

    $ PATH=$HOME/Development/bin/ghc/bin:${PATH}

    remove temporary files

    cd $HOME/Downloads
    rm ghc-7.8.2-x86_64-unknown-linux-deb7.tar.bz2
    rm -rf ghc-7.8.2

    ### cabal (package manager for haskell)

    clone dist
    @@ -60,3 +66,9 @@ cabal-install
    add path to cabal to PATH environment

    $ PATH=$HOME/.cabal/bin:$PATH

    remove temporary files

    cd $HOME/Downloads
    rm Cabal-1.18.1.3.tar.gz
    rm -rf Cabal-1.18.1.3
  24. @yantonov yantonov revised this gist Apr 9, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -11,19 +11,19 @@ ubuntu prerequisites
    ghc installation

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-x86_64-unknown-linux.tar.bz2
    $ tar xjvf ghc-7.6.3-x86_64-unknown-linux.tar.bz2
    $ cd ghc-7.6.3
    $ wget http://www.haskell.org/ghc/dist/7.8.1/ghc-7.8.1-x86_64-unknown-linux-deb7.tar.bz2
    $ tar xjvf ghc-7.8.1-x86_64-unknown-linux-deb7.tar.bz2
    $ cd ghc-7.8.1

    $ ./configure --prefix=$HOME/Development/bin/ghc-7.6.3
    $ ./configure --prefix=$HOME/Development/bin/ghc-7.8.1
    # or choose another path

    $ make install

    symbol links

    $ cd $HOME/Development/bin
    $ ln -s `pwd`/ghc-7.6.3 ghc
    $ ln -s `pwd`/ghc-7.8.1 ghc

    add $HOME/Development/bin/ghc to $PATH

  25. @yantonov yantonov created this gist Apr 8, 2014.
    62 changes: 62 additions & 0 deletions install-ghc.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    ### install latest GHC on ubuntu

    ### ghc

    ubuntu prerequisites

    # Multiprecision arithmetic library developers tools
    $ sudo apt-get install libgmp-dev -y
    $ sudo -K

    ghc installation

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-x86_64-unknown-linux.tar.bz2
    $ tar xjvf ghc-7.6.3-x86_64-unknown-linux.tar.bz2
    $ cd ghc-7.6.3

    $ ./configure --prefix=$HOME/Development/bin/ghc-7.6.3
    # or choose another path

    $ make install

    symbol links

    $ cd $HOME/Development/bin
    $ ln -s `pwd`/ghc-7.6.3 ghc

    add $HOME/Development/bin/ghc to $PATH

    $ PATH=$HOME/Development/bin/ghc/bin:${PATH}

    ### cabal (package manager for haskell)

    clone dist

    $ cd $HOME/Downloads
    $ wget http://www.haskell.org/cabal/release/cabal-1.18.1.3/Cabal-1.18.1.3.tar.gz
    $ tar xzvf Cabal-1.18.1.3.tar.gz
    $ cd Cabal-1.18.1.3

    building (from README for cabal)

    $ ghc --make Setup.hs
    $ ./Setup configure --user
    $ ./Setup build
    $ ./Setup install

    build

    $ ghc -threaded --make Setup
    $ ./Setup configure --user
    $ ./Setup build
    $ ./Setup install

    cabal-install

    $ cd ../cabal-install
    $ ./bootstrap.sh

    add path to cabal to PATH environment

    $ PATH=$HOME/.cabal/bin:$PATH