Skip to content

Misc. bug: llama-cli: error while loading shared libraries: libllama.so: cannot open shared object file: No such file or directory #11267

Closed
@ElectriPixie

Description

@ElectriPixie

Name and Version

version: 4493 (9c8dcef)
built with cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 for x86_64-linux-g

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

No response

Command line

./llama-server

Problem description & steps to reproduce

I get this error when I run llama-server,

llama-cli: error while loading shared libraries: libllama.so: cannot open shared object file: No such file or directory
llama.cpp/build/bin/llama-server: error while loading shared libraries: libggml.so: cannot open shared object file: No such file or directory

It's a minor issue i was able to fix it with

export LD_LIBRARY_PATH=llama.cpp/build/ggml/src:llama.cpp/build/src/:$LD_LIBRARY_PATH.

It worked without doing this in which ever branch I was using before this.

I built it using
cmake -B build
cmake --build build --config Release

First Bad Commit

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions