Closed abdulalalalalala closed 3 months ago
Hi @abdulalalalalala
On which Linux distribution are you trying to build Hurl?
Can you check that you've followed build instructions for Linux on https://hurl.dev/docs/installation.html#build-on-linux?
Hi @abdulalalalalala
On which Linux distribution are you trying to build Hurl?
Can you check that you've followed build instructions for Linux on https://hurl.dev/docs/installation.html#build-on-linux?
indeed. I'm on Fedora 40.
I looked at the dependencies and found libxml2-devel missing in system, which hurl's cargo installation method requires for compilation. After dnf install libxml2-devel
, cargo was able to compile ok.
I guessing that may be because a rust lib libxml
actually require the host's system to have libxml2-devel
from both "hurl_core" and "hurl" workspaces. I think there is alternative to it called xml-rs
that doesn't require host to install extra pkg. It can potentially make hurl to be more "distro agnostic"... but that seems way outside of scope to this issue i posted
Hi @abdulalalalalala
For the build on Fedora, we should update the docs https://hurl.dev/docs/installation.html#build-on-linux, I'm going to create an issue on that.
For libxml2
, we use it for:
libxml2
(including XML namespaces etc..)This PR #1910 can gives some context on performance gain using libxml2
.
What is the current bug behavior?
Failed to install hurl via cargo, here is the error:
Steps to reproduce
cargo install hurl
What is the expected correct behavior?
Install hurl successfully
Execution context
N/A
hurl --version
): 4.3Possible fixes
May be related to #361