Skip to content

Commit

Permalink
[Docs] Add note for install errors and solutions (#41)
Browse files Browse the repository at this point in the history
* docs: Add errors and solutions

* docs: Add libblas.so error
  • Loading branch information
katopz authored Oct 2, 2023
1 parent 27dcbd2 commit 4f4ec01
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions wasmedge-ggml-llama-interactive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 4f4ec01

Please sign in to comment.