I am encountering a build error when running cargo build --release
on a Substrate Node Template project. Here is the error message:
error: failed to run custom build command for `tikv-jemalloc-sys v0.5.4+5.3.0-patched`
[Error details here...]
configure: error: Prefix should not contain spaces
Environment:
- Target: x86_64-unknown-linux-gnu
- Host: x86_64-unknown-linux-gnu
- Error occurs during the configuration phase indicating that the prefix should not contain spaces.
Attempted Resolutions:
- I have tried looking for similar issues and solutions, including checking the
tikv-jemalloc-sys
repository and Rust community discussions. - Checked and ensured environment variables related to the compiler and flags are set correctly.
This project builds successfully on another device, which suggests an environment-specific issue. I suspect it might relate to directory paths or environment settings.
Questions:
How can I resolve the issue of "Prefix should not contain spaces" in the context of a Rust build using cargo?
Are there any recommended practices for setting paths or environment variables specifically for Rust projects to avoid such issues?
Thank you for your help!