[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-rust-build-image-has-no-libclang-for-bindgen":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":6,"lead":18,"facts":21,"why":36,"log":41,"fix":114,"engine":123,"related":127,"pitch":134},"rust","rust-build-image-has-no-libclang-for-bindgen","Rust build image has no libclang for bindgen","Rust",{"description":9},"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 t",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Frust",{"label":6},"",[19],{"text":20},"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.",[22,27,30,32],{"label":23,"value":24,"tone":25,"tooltip":26},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":28,"value":29},"Seen","1 times",{"label":31,"value":7},"Where",{"label":33,"value":34,"tooltip":35},"Status","In Analysis","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":37,"body":38},"Why it happens",[39],{"text":40},"A dependency generates its C bindings with bindgen, which needs libclang. The engine's Rust build image does not ship libclang, and a build cannot install packages.",{"heading":42,"block":43},"What the log looks like",{"header":44,"lines":45},"Deploy log",[46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110],{"segments":47},[48],{"text":49},"cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu",{"segments":51},[52],{"text":53},"CC_x86_64_unknown_linux_gnu = None",{"segments":55},[56],{"text":57},"cargo:rerun-if-env-changed=HOST_CC",{"segments":59},[60],{"text":61},"HOST_CC = None",{"segments":63},[64],{"text":65},"cargo:rerun-if-env-changed=CC",{"segments":67},[68],{"text":69},"CC = None",{"segments":71},[72],{"text":73},"cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS",{"segments":75},[76],{"text":77},"CRATE_CC_NO_DEFAULTS = None",{"segments":79},[80],{"text":81},"cargo:rerun-if-env-changed=CFLAGS",{"segments":83},[84],{"text":85},"CFLAGS = None",{"segments":87},[88],{"text":89},"cargo:rerun-if-env-changed=HOST_CFLAGS",{"segments":91},[92],{"text":93},"HOST_CFLAGS = None",{"segments":95},[96],{"text":97},"cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu",{"segments":99},[100],{"text":101},"CFLAGS_x86_64_unknown_linux_gnu = None",{"segments":103},[104],{"text":105},"cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu",{"segments":107},[108],{"text":109},"CFLAGS_x86_64-unknown-linux-gnu = None",{"segments":111},[112],{"text":113},"cargo:rerun-if-env-changed=CC_x86_64-unkno…",{"heading":115,"steps":116,"block":120},"How to fix it",[117],[118],{"text":119},"Nothing to change in the project. A future engine release will add protoc, cmake and libclang to the Rust build image. Until then, a project with its own Dockerfile that installs these tools can be deployed through that Dockerfile.",{"header":121,"lines":122},"Fix by hand",[],{"heading":17,"body":124,"block":125},[],{"header":17,"lines":126},[],{"heading":128,"items":129},"Apps affected",[130],{"title":131,"badge":132,"tone":25,"href":133},"vector","1 occurrence","\u002Fapps\u002Fvectordotdev\u002Fvector",{"heading":135,"body":136,"footNote":137,"docsLabel":138,"docsHref":139},"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 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]