@@ -41,8 +41,8 @@ ivm install latest
41
41
```
42
42
43
43
::: note
44
- When using macOS and Homebrew, you may need to set the ` LIBRARY_PATH ` and ` PATH `
45
- variables. See the [ macOS installation section ] ( #macos ) for more details .
44
+ ivm installs Inko from source, so you'll need to install the necessary
45
+ [ dependencies ] ( #dependencies ) for your platform first .
46
46
:::
47
47
48
48
This installs the latest known version. If you want to install a specific
@@ -128,19 +128,6 @@ Inko is available in [Homebrew](https://brew.sh/):
128
128
brew install inko
129
129
```
130
130
131
- You may need to add the LLVM ` bin ` directory to your ` PATH ` as follows:
132
-
133
- ``` bash
134
- export PATH=" $( brew --prefix llvm@17) /bin:$PATH "
135
- ```
136
-
137
- You may also need to set the ` LIBRARY_PATH ` to the following, though this
138
- doesn't appear to always be needed:
139
-
140
- ``` bash
141
- export LIBRARY_PATH=" $( brew --prefix llvm@17) /lib:$( brew --prefix zstd) /lib"
142
- ```
143
-
144
131
## From source
145
132
146
133
When building from Git, first clone the repository:
@@ -209,22 +196,10 @@ make install DESTDIR=./package-root PREFIX=/usr/local
209
196
The ` PREFIX ` variable must be set for both the ` make ` and ` make install `
210
197
commands, but ` DESTDIR ` is only necessary for ` make install ` .
211
198
212
- ### FreeBSD
213
-
214
- When building from source, you may have to set the ` LIBRARY_PATH ` variable as
215
- follows:
216
-
217
- ``` bash
218
- LIBRARY_PATH=" /usr/local/lib" cargo build
219
- ```
220
-
221
- Without this the linker may fail to find the zstd and libffi libraries, which
222
- are needed by LLVM on FreeBSD.
223
-
224
199
## Dependencies
225
200
226
- When building from source or using [ ivm] ( ivm ) , you'll first need to install
227
- the compiler's dependencies.
201
+ When building from source or using [ ivm] ( ivm ) , you'll need to install the
202
+ necessary dependencies.
228
203
229
204
### Arch Linux
230
205
@@ -301,12 +276,41 @@ Older versions of Fedora aren't supported.
301
276
sudo pkg install llvm17 rust git
302
277
```
303
278
279
+ You may have to set the ` LIBRARY_PATH ` variable as follows:
280
+
281
+ ``` bash
282
+ export LIBRARY_PATH=" /usr/local/lib"
283
+ ```
284
+
285
+ Without this the linker may fail to find the zstd and libffi libraries, which
286
+ are needed by LLVM on FreeBSD.
287
+
304
288
### macOS
305
289
306
290
``` bash
307
291
brew install llvm@17 rust git
308
292
```
309
293
294
+ You may have to set ` LIBRARY_PATH ` as follows:
295
+
296
+ ``` bash
297
+ export LIBRARY_PATH=" $( brew --prefix llvm@17) /lib:$( brew --prefix zstd) /lib"
298
+ ```
299
+
300
+ You may also have to add the LLVM ` bin ` directory to your ` PATH ` as follows:
301
+
302
+ ``` bash
303
+ export PATH=" $( brew --prefix llvm@17) /bin:$PATH "
304
+ ```
305
+
306
+ Without setting these variables, it's possible building of Inko fails due to the
307
+ build process not finding the necessary LLVM libraries.
308
+
309
+ ::: tip
310
+ See [ this Homebrew issue] ( https://github.com/Homebrew/brew/issues/13481 ) for
311
+ details on why this might be necessary.
312
+ :::
313
+
310
314
### Ubuntu
311
315
312
316
For Ubuntu 24.04 and newer:
0 commit comments