... | ... | @@ -9,7 +9,7 @@ If you're on a recent Linux system, then you should be able to get a working bui |
|
|
If you are familiar with docker and comfortable doing all your work in the docker container with a default bash shell. This is a 1 step install for a development image (ghc build requirements plus a few development related tools). The runghc binary can not be run outside of the docker container because GHC will be compiled with paths only available in the container.
|
|
|
First cd into your ghc directory that you should check out according to [Building/GettingTheSources](building/getting-the-sources), then declare `DOCKER_ENV=9e4c540d9e4972a36291dfdf81f079f37d748890`. For the latest revision, check the [.gitlab-ci.yml](https://gitlab.haskell.org/ghc/ghc/-/blob/master/.gitlab-ci.yml#L5). Finally,
|
|
|
|
|
|
```shell
|
|
|
```bash
|
|
|
sudo docker run --rm -i -t -v `pwd`:/home/ghc registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_ENV /bin/bash
|
|
|
```
|
|
|
|
... | ... | @@ -66,7 +66,7 @@ You can make sure you have all dependencies by |
|
|
|
|
|
But this might install some packages you do not use in your system (e.g. Sphinx). Alternatively install the following:
|
|
|
|
|
|
```shell
|
|
|
```
|
|
|
sudo apt-get install build-essential git autoconf python3 libgmp-dev libnuma-dev libncurses-dev
|
|
|
cabal v2-install alex happy
|
|
|
```
|
... | ... | @@ -90,8 +90,8 @@ For building the documentation (User's Guide): |
|
|
|
|
|
other packages that are useful for development:
|
|
|
|
|
|
```shell
|
|
|
sudo apt-get install linux-tools-generic xutils-dev
|
|
|
```
|
|
|
$ sudo apt-get install linux-tools-generic xutils-dev
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -105,8 +105,8 @@ For [validating patches](testing-patches) : |
|
|
|
|
|
Install the [required tools](https://gitlab.haskell.org/ghc/ghc/-/wikis/building/preparation/tools):
|
|
|
|
|
|
```shell
|
|
|
sudo pacman -S ghc ghc-static perl gcc make happy alex cabal-install autoconf automake python python-sphinx libedit numactl
|
|
|
```
|
|
|
$ sudo pacman -S ghc ghc-static perl gcc make happy alex cabal-install autoconf automake python python-sphinx libedit numactl
|
|
|
```
|
|
|
|
|
|
|
... | ... | |