From d577bf64016869b5a2de51b851d4643a32a9b514 Mon Sep 17 00:00:00 2001 From: Victor Dyotte Date: Sat, 11 Apr 2026 12:26:43 -0400 Subject: [PATCH 1/2] Update binding.md with Linux library path warning (#85) Without updating the library path trying to run the main results in could not load: libchatllm.so --- docs/binding.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/binding.md b/docs/binding.md index 493603e..2ae63b3 100644 --- a/docs/binding.md +++ b/docs/binding.md @@ -36,6 +36,11 @@ Build: nim c main.nim ``` +> [!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=.:$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) From 6e40f198124129b3350cd43cfebb392b8e3f24ee Mon Sep 17 00:00:00 2001 From: Victor Dyotte Date: Sun, 12 Apr 2026 11:17:21 -0400 Subject: [PATCH 2/2] Chore: documentation grammar fixes and precisions --- docs/binding.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/binding.md b/docs/binding.md index 2ae63b3..8b5ad0e 100644 --- a/docs/binding.md +++ b/docs/binding.md @@ -38,10 +38,10 @@ nim c main.nim > [!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=.:$LD_LIBRARY_PATH` +> 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`. +Run it with exactly the same command line options, for example: `./main -i -m path/to/model`. ![](code_highlight.png)