You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Download the pre-built binaries from the [releases page](https://github.com/haskell/haskell-ide-engine/releases), and copy/symlink them into `/usr/local/bin` (or somewhere else in your $PATH):
105
+
106
+
```bash
107
+
ln -s hie-bin-dir/hie* /usr/local/bin/
108
+
```
109
+
110
+
Alternatively, you can install from source. See instructions below
111
+
112
+
### Installation with Nix
113
+
114
+
Follow the instructions at https://github.com/domenkozar/hie-nix
115
+
116
+
117
+
### Installation on ArchLinux
118
+
119
+
An [haskell-ide-engine-git](https://aur.archlinux.org/packages/haskell-ide-engine-git/) package is available on the AUR.
120
+
121
+
Using [Aura](https://github.com/aurapm/aura):
122
+
123
+
```
124
+
# aura -A haskell-ide-engine-git
125
+
```
126
+
127
+
128
+
### Installation from source
103
129
104
130
To install HIE, you need stack version >= 1.7.1.
105
131
106
-
HIE builds from source code, so there's a couple of extra steps.
132
+
HIE builds from source code, so there's a couple of extra steps.
In order to support both stack and cabal, HIE requires `cabal-install`
132
-
as well. If it is not already installed, install it and update its package list:
133
-
134
-
```bash
135
-
stack install cabal-install
136
-
cabal update
137
-
```
138
-
139
167
#### Choose your GHC version
140
168
141
169
The GHC version you are going to install HIE for depends on which version of GHC you are using for your project. If you don't have a current project there are two potential options:
@@ -201,118 +229,37 @@ This will:
201
229
* name them as expected by the VS Code plugin
202
230
* build local hoogle docs for each version
203
231
204
-
For this you need the `make` tool (on Windows, see the further advice below). Use the command:
In order to avoid problems with long paths on Windows you can do the following:
267
-
268
-
1. Edit the group policy: set "Enable Win32 long paths" to "Enabled" (Works
269
-
only for Windows 10).
270
-
271
-
2. Clone the `haskell-ide-engine` to the root of your logical drive (e.g. to
272
-
`C:\hie`)
273
253
274
-
### Installation on macOS
275
-
276
-
Download the pre-built binaries from the [releases page](https://github.com/haskell/haskell-ide-engine/releases), and copy/symlink them into `/usr/local/bin` (or somewhere else in your $PATH):
277
-
278
-
```bash
279
-
ln -s hie-bin-dir/hie* /usr/local/bin/
280
-
```
281
-
282
-
Alternatively, you can install from source with `make build` or `make build-all`.
283
-
284
-
#### DYLD on macOS
285
-
286
-
If you hit a problem that looks like ```can't load .so/.DLL for: libiconv.dylib (dlopen(libiconv.dylib, 5): image not found)```, it means that libraries cannot be found in the library path. We can hint where to look for them and append more paths to `DYLD_LIBRARY_PATH`.
On practice `/usr/local/lib` is full of dylibs linked by `brew`. After you amend `DYLD_LIBRARY_PATH`, some of the previously compiled application might not work and yell about incorrect linking, for example, `dyld: Symbol not found: __cg_jpeg_resync_to_restart`. You may need to look up where it comes from and remove clashing links, in this case it were clashing images libs:
Follow the instructions at https://github.com/domenkozar/hie-nix
305
-
306
-
307
-
### Installation on ArchLinux
308
-
309
-
An [haskell-ide-engine-git](https://aur.archlinux.org/packages/haskell-ide-engine-git/) package is available on the AUR.
310
-
311
-
Using [Aura](https://github.com/aurapm/aura):
261
+
to VS Code user settings.
312
262
313
-
```
314
-
# aura -A haskell-ide-engine-git
315
-
```
316
263
317
264
### Installation with Shake
318
265
@@ -687,6 +634,24 @@ All the documentation is in [the docs folder](/docs) at the root of this project
687
634
688
635
## Troubleshooting
689
636
637
+
### DYLD on macOS
638
+
639
+
If you hit a problem that looks like ```can't load .so/.DLL for: libiconv.dylib (dlopen(libiconv.dylib, 5): image not found)```, it means that libraries cannot be found in the library path. We can hint where to look for them and append more paths to `DYLD_LIBRARY_PATH`.
On practice `/usr/local/lib` is full of dylibs linked by `brew`. After you amend `DYLD_LIBRARY_PATH`, some of the previously compiled application might not work and yell about incorrect linking, for example, `dyld: Symbol not found: __cg_jpeg_resync_to_restart`. You may need to look up where it comes from and remove clashing links, in this case it were clashing images libs:
646
+
647
+
```sh
648
+
$ brew unlink libjpeg
649
+
$ brew unlink libtiff
650
+
$ brew unlink libpng
651
+
```
652
+
653
+
Recompile.
654
+
690
655
### macOS: Got error while installing GHC 8.6.1 or 8.6.2 - dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
691
656
692
657
These builds have a dependency on [homebrew](https://brew.sh)'s `gmp` library. Install with brew: `brew install gmp`.
0 commit comments