I started using Haskell when stack had became the default build tool for many.
So, i have slack on my machine, which isolates different ghc versions.
When i wanted to build ghc, which is a project not based on stack, i found that i will require to install haskell-platform and ghc as well : build instructions ubuntu
I didn't want to do all that work. So, I tried the following and it worked:
```
# i used stack for installing alex and happy
stack install alex happy
# get ghc Or below command without haskell-platform and ghc
sudo apt-get build-dep ghc
# I ran this as well :P
sudo apt-get install git autoconf automake libtool make libgmp-dev ncurses-dev g++ python bzip2
# export ghc on path
export PATH=$PATH:~/.stack/programs/x86_64-linux/ghc-<ghc-version-no>/bin/
# e.g. export PATH=$PATH:~/.stack/programs/x86_64-linux/ghc-8.0.2/bin/
```
After this just follow instructions in ghc/Readme.md
and don't forget to run `make` with `-j<num-cpus+1>` on your system.
and then go off for a walk in park.
So, i have slack on my machine, which isolates different ghc versions.
When i wanted to build ghc, which is a project not based on stack, i found that i will require to install haskell-platform and ghc as well : build instructions ubuntu
I didn't want to do all that work. So, I tried the following and it worked:
```
# i used stack for installing alex and happy
stack install alex happy
# get ghc Or below command without haskell-platform and ghc
sudo apt-get build-dep ghc
# I ran this as well :P
sudo apt-get install git autoconf automake libtool make libgmp-dev ncurses-dev g++ python bzip2
# export ghc on path
export PATH=$PATH:~/.stack/programs/x86_64-linux/ghc-<ghc-version-no>/bin/
# e.g. export PATH=$PATH:~/.stack/programs/x86_64-linux/ghc-8.0.2/bin/
```
After this just follow instructions in ghc/Readme.md
and don't forget to run `make` with `-j<num-cpus+1>` on your system.
and then go off for a walk in park.
Comments
Post a Comment