Skip to content

Commit 754ec08

Browse files
artFuchsjsbezerra
authored andcommitted
stack install in more details
1 parent da5e6be commit 754ec08

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,32 @@ In depth "how to" tutorials are available for each stable version at [Releases](
2121

2222
### Installing via Stack
2323

24+
First you must assure that `stack` is in **version 1.6.0 or later**.
25+
You can check the `stack` version with the command:
26+
27+
```bash
28+
$ stack --version
29+
```
30+
If the stack version is older, you can upgrade it by running:
31+
32+
```bash
33+
$ stack upgrade
34+
$ echo "export PATH=~/.local/bin:${PATH}" >> ~/.bashrc
35+
$ source ~/.bashrc
36+
```
37+
38+
You may remove the previous installed stack package.
2439
Once you have cloned this repository, install `verigraph` by running:
2540

2641
```bash
2742
$ stack setup # Will download and configure ghc if it is not installed yet
2843
$ stack install
29-
$ echo "export PATH=${PATH}:~/.local/bin" >> ~/.bashrc
30-
$ source ~/.bashrc
3144
```
3245

46+
If there is an error saying `/usr/bin/ld: cannot find -ltinfo`, it means you don't have `libtinfo.so` in your `/usr/lib` directory
47+
(see https://github.com/judah/haskeline/issues/57).
48+
You may install the lib package to fix this (In ubuntu the package `libtinfo-dev` installs this lib), and then run `stack install` again
49+
3350
If there is an error saying `recompile with -fPIC`, it can be fixed by the following command
3451
(see https://github.com/commercialhaskell/stack/issues/2712).
3552

0 commit comments

Comments
 (0)