From 4f4ec01a2c9a7036b3f47b2e2706f6935d2f1420 Mon Sep 17 00:00:00 2001 From: Todsaporn Banjerdkit Date: Mon, 2 Oct 2023 15:42:30 +0700 Subject: [PATCH] [Docs] Add note for install errors and solutions (#41) * docs: Add errors and solutions * docs: Add libblas.so error --- wasmedge-ggml-llama-interactive/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/wasmedge-ggml-llama-interactive/README.md b/wasmedge-ggml-llama-interactive/README.md index e586270..3a46480 100644 --- a/wasmedge-ggml-llama-interactive/README.md +++ b/wasmedge-ggml-llama-interactive/README.md @@ -105,6 +105,28 @@ Answer: The total cost of 3 apples would be 15 dollars. Each apple costs 5 dollars, so 3 apples would cost 3 x 5 = 15 dollars. ``` +## Errors +- After running `apt update && apt install -y libopenblas-dev`, you may encountered the following error: + ```bash + ... + E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) + E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? + ``` + This indicates that you are not logged in as `root`. Please try installing again using the `sudo` command: + ```bash + sudo apt update && sudo apt install -y libopenblas-dev + ``` + +- After running the `wasmedge` command, you may received the following error: + ```bash + [2023-10-02 14:30:31.227] [error] loading failed: invalid path, Code: 0x20 + [2023-10-02 14:30:31.227] [error] load library failed:libblas.so.3: cannot open shared object file: No such file or directory + [2023-10-02 14:30:31.227] [error] loading failed: invalid path, Code: 0x20 + [2023-10-02 14:30:31.227] [error] load library failed:libblas.so.3: cannot open shared object file: No such file or directory + unknown option: nn-preload + ``` + This suggests that your plugin installation was not successful. To resolve this issue, please attempt to install your desired plugin again. + ## Credit The WASI-NN ggml plugin embedded [`llama.cpp`](git://github.com/ggerganov/llama.cpp.git@b1217) as its backend.