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
Copy file name to clipboardExpand all lines: docs/guide/building-from-source.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,19 +25,23 @@ This is useful for building from source on machines that aren't connected to the
25
25
:::
26
26
27
27
::: info
28
-
29
28
If `cmake` is not installed on your machine, `node-llama-cpp` will automatically download `cmake` to an internal directory and try to use it to build `llama.cpp` from source.
30
29
31
30
If the build fails, make sure you have the required dependencies of `cmake` installed on your machine. More info is available [here](https://github.com/cmake-js/cmake-js#:~:text=projectRoot/build%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5Bstring%5D-,Requirements%3A,-CMake) (you don't have to install `cmake` or `cmake-js`, just the dependencies).
31
+
:::
32
32
33
-
If the build fails on macOS with the error `"/usr/bin/cc" is not able to compile a simple test program`, try running `xcode-select --install` to install the Xcode command line tools.
34
-
33
+
::: details Dependencies for macOS
34
+
If the build fails on macOS with the error `"/usr/bin/cc" is not able to compile a simple test program`,
35
+
try running this command to install the Xcode command line tools:
36
+
```shell
37
+
xcode-select --install
38
+
```
35
39
:::
36
40
37
41
::: details Dependencies for Windows x64
38
42
If the build fails on your machine, ensure you have all the necessary build tools installed.
39
43
40
-
You can install all the dependencies via [WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/) using these commands:
44
+
You can install all the dependencies via [WinGet](https://learn.microsoft.com/en-us/windows/package-manager/winget/) using this command:
0 commit comments