hurl icon indicating copy to clipboard operation
hurl copied to clipboard

hurl: /lib64/libcurl.so.4: no version information available (required by hurl)

Open sardaukar opened this issue 2 years ago • 1 comments

I get this running the binary in Fedora 34. Do I need an extra lib? Hurl still works, would just like to fix the warning

sardaukar avatar Oct 07 '21 18:10 sardaukar

I've reproduced this warning with the Hurl Linux precompiled binary and a Fedora 34 image. While we try to understand/solve the issue, you can install Hurl with Cargo and everything should be fine, without any warning:

$ yum install cargo libxml2-devel openssl-devel
$ cargo install hurl
$ export PATH=/root/.cargo/bin:$PATH
$ hurl --version
hurl 1.3.1

jcamiel avatar Oct 07 '21 20:10 jcamiel

Is there a way to fix this with binary install?

azzamsa avatar Oct 08 '22 18:10 azzamsa

We need to work on it in order to understand what's going on. Meanwhile, you can try to install Hurl with Cargo (https://hurl.dev/docs/installation.html#cargo), that should produce a correct binary on Fedora.

jcamiel avatar Oct 08 '22 21:10 jcamiel

[root@rocky_linux_v9 ~]# cargo install hurl
...
error: failed to compile `hurl v4.0.0`, intermediate artifacts can be found at `/tmp/cargo-installDxkBi8`

Caused by:
  package `hurl v4.0.0` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.66.1

any other ideas on how to install hurl to redhat/rocky?

vaidis avatar Jul 20 '23 09:07 vaidis

[root@rocky_linux_v9 ~]# cargo install hurl
...
error: failed to compile `hurl v4.0.0`, intermediate artifacts can be found at `/tmp/cargo-installDxkBi8`

Caused by:
  package `hurl v4.0.0` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.66.1

any other ideas on how to install hurl to redhat/rocky?

Hi @vaidis, You have to install rust 1.70 or newer to be able to build hurl 4.0.0+ on rockylinux v9. You have to follow these prerequisites (tested with rockylinux:9.2 docker image):

yum install -y pkg-config gcc openssl-devel libxml2-devel git
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
git clone --depth 1 https://github.com/Orange-OpenSource/hurl.git --branch 4.0.0
cd hurl
cargo install hurl
hurl --version
hurl 4.0.0 libcurl/8.1.2-DEV OpenSSL/3.0.7 zlib/1.2.11
Features (libcurl):  alt-svc AsynchDNS HSTS IPv6 libz SSL UnixSockets
Features (built-in): brotli
echo -e "GET https://google.fr\nHTTP 301" | hurl --test
-: Running [1/1]
-: Success (1 request(s) in 186 ms)
--------------------------------------------------------------------------------
Executed files:  1
Succeeded files: 1 (100.0%)
Failed files:    0 (0.0%)
Duration:        187 ms

lepapareil avatar Jul 20 '23 09:07 lepapareil