-
Notifications
You must be signed in to change notification settings - Fork 12k
llama-cli: error while loading shared libraries: libllama.so: cannot open shared object file: No such file or directory #11123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you locate the path to libllama.so in your system after the installation and tried to append this path to LD_LIBRARY_PATH? |
Got the same by using the binary files. What do you mean with installation? Should i not work out of the box with binary files? |
So when you build it locally it will work I'll just go this way
|
Last builds do not include the .so library anymore. Related: |
Can confirm Ubuntu zip files do not include libllama.so anymore. As a workaround you can either compile it yourself or get the libraries from the Docker version. |
Will be fixed with the next release: #11392 Please close the issue when you confirm. |
Have tested b4552, it works on my machine(s). Output of
|
b4641 ./build/bin/llama-cli system: Ubuntu 18 |
@Liozhang you have to go into the
or configure your dynamic loader to find the library in that directory |
For people like me who want to package the binary version for their distro, the fix was simply to install the libraries into the system-wide shared library path. Example adapted from the AUR package I've put together:
For a concise and helpful intro to shared libraries, see this chapter from the LPI 101 learning material. |
If you are not creating a package, it is better to not mess with the directories where the package manager is putting their stuff, and use |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Name and Version
Version: llama-b4434-bin-ubuntu-x64
Operating systems
Linux
Which llama.cpp modules do you know to be affected?
llama-cli
Command line
Problem description & steps to reproduce
Trying to run this new version and got this message:
[erick@Xeon bin]$ ./llama-cli -m ~/Apps/Llama/EVA-LLaMA-3.33-70B-v0.1.Q4_K_M.gguf -p "I believe the meaning of life is" -n 128
./llama-cli: error while loading shared libraries: libllama.so: cannot open shared object file: No such file or directory
The last build version that works properly is: llama-b4406-bin-ubuntu-x64
First Bad Commit
The last build version that works properly is: llama-b4406-bin-ubuntu-x64
Relevant log output
No response
The text was updated successfully, but these errors were encountered: