diff --git a/docs/binding.md b/docs/binding.md index 493603e..8b5ad0e 100644 --- a/docs/binding.md +++ b/docs/binding.md @@ -36,7 +36,12 @@ Build: nim c main.nim ``` -Run it with exactly the same command line options, for example: `main -i -m path/to/model`. +> [!WARNING] +> Linux does not search for `.so` files in current directory by default. +> You need to update your library path before running the nim program with: +> `export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH"` + +Run it with exactly the same command line options, for example: `./main -i -m path/to/model`. ![](code_highlight.png) @@ -189,4 +194,4 @@ Examples: ### Others -* [V-lang/VB.net/C#](https://github.com/foldl/chatllm.cpp/issues/41) \ No newline at end of file +* [V-lang/VB.net/C#](https://github.com/foldl/chatllm.cpp/issues/41)