Rust build fails because libclang is missing

A dependency has to be compiled and needs development headers that the build image does not carry (pkg-config, or a library it queries). The full output is in the deploy log, naming the dependency.

Seen12 times · 5 variants
WhereRust

Why it happens

A Rust dependency is compiling native code with bindgen, but the build environment cannot find libclang. The log also shows restricted access to the APT package-list directory, so required development packages may not be installable during the build.

What the log looks like

Deploy log
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)...thread 'main' panicked at .../bindgen-0.72.1/lib.rs:Unable to find libclang: "couldn't find any ...cargo:rustc-link-lib=static=zstdcargo:root=.../zstd-sys-.../out

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation