You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build fails with OpenSSL header issues on Ubuntu 24.04 + Nix environment causes runtime library path conflicts #72
Encountered two separate but related build/runtime issues when building Claudia:
1. OpenSSL Development Headers Not Found
Error:
warning: openssl-sys@0.9.109: /usr/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
error: failed to run custom build command for `openssl-sys v0.9.109`
Root Cause:
On Ubuntu 24.04, OpenSSL headers are located in /usr/include/x86_64-linux-gnu/openssl/ but the build system looks in /usr/include/openssl/.
Solution:
Even with libssl-dev and pkg-config installed, needed to create symbolic links:
Encountered two separate but related build/runtime issues when building Claudia:
1. OpenSSL Development Headers Not Found
Error:
warning: openssl-sys@0.9.109: /usr/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
error: failed to run custom build command for `openssl-sys v0.9.109`
Root Cause: On Ubuntu 24.04, OpenSSL headers are located in /usr/include/x86_64-linux-gnu/openssl/ but the build system looks in /usr/include/openssl/.
Solution: Even with libssl-dev and pkg-config installed, needed to create symbolic links:
exit # exit nix shell
cargo clean
bun run tauri build
Suggested Improvements
Documentation: Add Ubuntu 24.04 specific build instructions mentioning the OpenSSL symlink requirement
Build Script: Consider adding a pre-build check for OpenSSL headers in platform-specific locations
Nix Compatibility: Add warning in docs about Nix environment contamination or provide nix-specific build instructions
CI/CD: Test builds on Ubuntu 24.04 to catch these issues early
Reproduction Steps
Start with clean Ubuntu 24.04 system
Install standard Rust/Node/Bun toolchain
Enter Nix shell (if using Nix)
Run bun run tauri build
Observe OpenSSL build failures
After fixing OpenSSL issues, observe runtime library path issues
Workaround Summary
For Ubuntu 24.04 users:
Create OpenSSL header symlinks as shown above
Ensure you're NOT in a Nix shell when building
Build should complete successfully
At the moment, I can't tell you why but I can tell you that I experienced the same issue with a similar environment - I am using Nix package manager.
My work-around was to simply to remove /home/mbana/.nix-profile/bin and /nix/var/nix/profiles/default/bin like below (note: I am running in WSL) from PATH.
If anyone knows why this made a difference, please do share.
Activity
commandodev commentedon Jun 30, 2025
@uptownhr - I've just created pr #82 which adds a nix flake to this project
mbana commentedon Jun 16, 2026
At the moment, I can't tell you why but I can tell you that I experienced the same issue with a similar environment - I am using Nix package manager.
My work-around was to simply to remove
/home/mbana/.nix-profile/binand/nix/var/nix/profiles/default/binlike below (note: I am running in WSL) fromPATH.If anyone knows why this made a difference, please do share.