# Dfx deployment error

**URL:** <https://forum.dfinity.org/t/dfx-deployment-error/34180>\
**Category:** JavaScript\
**Created:** [August 15, 2024, 8:55am UTC](https://forum.dfinity.org/t/dfx-deployment-error/34180 "2024-08-15T08:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanbinoj](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stefanbinoj/32/19381_2.png) [@stefanbinoj](https://forum.dfinity.org/u/stefanbinoj)\
**Post date:** [August 15, 2024, 8:55am UTC](https://forum.dfinity.org/t/dfx-deployment-error/34180/1 "2024-08-15T08:55:39Z")

</div>

While trying to build a simple dapp on ICP during deployment, an error like this pops up, making me unable to deploy the canister locally:

Error: Command failed: cd .azle/stefan\_backend && /home/stefanbinoj/.config/azle/rust/1.73.0/bin/cargo build --target wasm32-wasi --manifest-path canister/Cargo.toml --release

error: failed to run custom build command for `quickjs-wasm-sys v1.0.0`

Caused by: process didn’t exit successfully: `/home/stefanbinoj/.config/azle/rust/target/release/build/quickjs-wasm-sys-84209e45aaffbb72/build-script-build` (exit status: 1)

— stderr /home/stefanbinoj/.config/azle/rust/1.73.0/git/checkouts/javy-9eee5663e993cb2d/fdf12ce/crates/quickjs-wasm-sys/wasi-sdk/share/wasi-sysroot/include/\_\_struct\_iovec.h:5:10: fatal error: ‘stddef.h’ file not found Error: clang diagnosed error: /home/stefanbinoj/.config/azle/rust/1.73.0/git/checkouts/javy-9eee5663e993cb2d/fdf12ce/crates/quickjs-wasm-sys/wasi-sdk/share/wasi-sysroot/include/\_\_struct\_iovec.h:5:10: fatal error: ‘stddef.h’ file not found

Error: Failed while trying to deploy canisters. Caused by: Failed to build all canisters. Caused by: Failed while trying to build all canisters. Caused by: The build step failed for canister ‘c5kvi-uuaaa-aaaaa-qaaia-cai’ (stefan\_backend) Caused by: Failed to build custom canister stefan\_backend. Caused by: Failed to run npx azle stefan\_backend. Caused by: The custom tool failed.

[Claude can make mistakes. Please double-check responses.](https://support.anthropic.com/en/articles/8525154-claude-is-providing-incorrect-or-misleading-responses-what-s-going-on)

---

<div class="post-metadata">

**Author:** ![lastmjs](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/lastmjs/32/3406_2.png) [@lastmjs](https://forum.dfinity.org/u/lastmjs)\
**Post date:** [September 10, 2024, 5:29pm UTC](https://forum.dfinity.org/t/dfx-deployment-error/34180/2 "2024-09-10T17:29:40Z")

</div>

Did you ever get this resolved? Please use the latest version of Azle 0.24.1 and follow The Azle Book: [The Azle Book (Beta) - The Azle Book](https://demergent-labs.github.io/azle/)
