2022-05-31 15:36:54 +03:00
|
|
|
# Installation
|
|
|
|
|
|
|
|
## Binaries Installation
|
|
|
|
|
|
|
|
### Linux
|
|
|
|
|
2023-06-28 21:37:30 +03:00
|
|
|
Precompiled binary is available at [hurl-4.0.0-x86_64-linux.tar.gz]:
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ INSTALL_DIR=/tmp
|
2023-06-28 21:37:30 +03:00
|
|
|
$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
|
|
|
|
$ export PATH=$INSTALL_DIR/hurl-4.0.0:$PATH
|
2022-05-31 15:36:54 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Debian / Ubuntu
|
|
|
|
|
|
|
|
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
|
|
|
|
|
|
|
|
```shell
|
2023-06-28 21:37:30 +03:00
|
|
|
$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl_4.0.0_amd64.deb
|
2023-07-10 19:39:45 +03:00
|
|
|
$ sudo apt update && sudo apt install ./hurl_4.0.0_amd64.deb
|
2022-05-31 15:36:54 +03:00
|
|
|
```
|
|
|
|
|
2023-08-11 12:59:05 +03:00
|
|
|
#### Alpine
|
|
|
|
|
2023-08-31 13:11:00 +03:00
|
|
|
Hurl is available on `testing` channel.
|
2023-08-11 12:59:05 +03:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing hurl
|
|
|
|
```
|
|
|
|
|
2022-05-31 15:36:54 +03:00
|
|
|
#### Arch Linux / Manjaro
|
|
|
|
|
|
|
|
[`hurl-bin` package] for Arch Linux and derived distros is available via [AUR].
|
|
|
|
|
|
|
|
#### NixOS / Nix
|
|
|
|
|
|
|
|
[NixOS / Nix package] is available on stable channel.
|
|
|
|
|
|
|
|
### macOS
|
|
|
|
|
2023-06-28 21:37:30 +03:00
|
|
|
Precompiled binary is available at [hurl-4.0.0-x86_64-macos.tar.gz] for x86 CPUs and [hurl-4.0.0-arm64-macos.tar.gz] for ARM CPUS.
|
2022-05-31 15:36:54 +03:00
|
|
|
|
2022-10-10 18:27:06 +03:00
|
|
|
#### Homebrew
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ brew install hurl
|
|
|
|
```
|
|
|
|
|
2022-10-10 18:27:06 +03:00
|
|
|
#### MacPorts
|
2022-10-10 14:59:21 +03:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo port install hurl
|
|
|
|
```
|
|
|
|
|
2022-12-04 01:28:05 +03:00
|
|
|
### FreeBSD
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo pkg install hurl
|
|
|
|
```
|
2022-10-10 14:59:21 +03:00
|
|
|
|
2022-05-31 15:36:54 +03:00
|
|
|
### Windows
|
|
|
|
|
|
|
|
#### Zip File
|
|
|
|
|
2023-06-28 21:37:30 +03:00
|
|
|
Hurl can be installed from a standalone zip file [hurl-4.0.0-win64.zip]. You will need to update your `PATH` variable.
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
#### Installer
|
|
|
|
|
2023-06-28 21:37:30 +03:00
|
|
|
An installer [hurl-4.0.0-win64-installer.exe] is also available.
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
#### Chocolatey
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ choco install hurl
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Scoop
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ scoop install hurl
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Windows Package Manager
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ winget install hurl
|
|
|
|
```
|
|
|
|
|
|
|
|
### Cargo
|
|
|
|
|
|
|
|
If you're a Rust programmer, Hurl can be installed with cargo.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ cargo install hurl
|
|
|
|
```
|
|
|
|
|
|
|
|
### Docker
|
|
|
|
|
|
|
|
```shell
|
2023-01-25 19:47:26 +03:00
|
|
|
$ docker pull ghcr.io/orange-opensource/hurl:latest
|
2022-05-31 15:36:54 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
### npm
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ npm install --save-dev @orangeopensource/hurl
|
|
|
|
```
|
|
|
|
|
|
|
|
## Building From Sources
|
|
|
|
|
|
|
|
Hurl sources are available in [GitHub].
|
|
|
|
|
2022-08-29 00:26:11 +03:00
|
|
|
### Build on Linux
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
Hurl depends on libssl, libcurl and libxml2 native libraries. You will need their development files in your platform.
|
|
|
|
|
|
|
|
|
|
|
|
#### Debian based distributions
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ apt install -y build-essential pkg-config libssl-dev libcurl4-openssl-dev libxml2-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Red Hat based distributions
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ yum install -y pkg-config gcc openssl-devel libxml2-devel
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Arch based distributions
|
|
|
|
|
|
|
|
```shell
|
2022-08-17 20:00:07 +03:00
|
|
|
$ pacman -Sy --noconfirm pkgconf gcc glibc openssl libxml2
|
2022-05-31 15:36:54 +03:00
|
|
|
```
|
|
|
|
|
2022-08-29 00:26:11 +03:00
|
|
|
### Build on macOS
|
2022-05-31 15:36:54 +03:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ xcode-select --install
|
|
|
|
$ brew install pkg-config
|
|
|
|
```
|
|
|
|
|
|
|
|
Hurl is written in [Rust]. You should [install] the latest stable release.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
$ source $HOME/.cargo/env
|
|
|
|
$ rustc --version
|
|
|
|
$ cargo --version
|
|
|
|
```
|
|
|
|
|
|
|
|
Then build hurl:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ git clone https://github.com/Orange-OpenSource/hurl
|
|
|
|
$ cd hurl
|
|
|
|
$ cargo build --release
|
|
|
|
$ ./target/release/hurl --version
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build on Windows
|
|
|
|
|
|
|
|
Please follow the [contrib on Windows section].
|
|
|
|
|
|
|
|
[GitHub]: https://github.com/Orange-OpenSource/hurl
|
2023-06-28 21:37:30 +03:00
|
|
|
[hurl-4.0.0-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-win64.zip
|
|
|
|
[hurl-4.0.0-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-win64-installer.exe
|
|
|
|
[hurl-4.0.0-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-x86_64-macos.tar.gz
|
|
|
|
[hurl-4.0.0-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-arm64-macos.tar.gz
|
|
|
|
[hurl-4.0.0-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/4.0.0/hurl-4.0.0-x86_64-linux.tar.gz
|
2022-05-31 15:36:54 +03:00
|
|
|
[AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository
|
|
|
|
[`hurl-bin` package]: https://aur.archlinux.org/packages/hurl-bin/
|
|
|
|
[install]: https://www.rust-lang.org/tools/install
|
|
|
|
[Rust]: https://www.rust-lang.org
|
|
|
|
[contrib on Windows section]: https://github.com/Orange-OpenSource/hurl/blob/master/contrib/windows/README.md
|
2022-09-17 12:41:04 +03:00
|
|
|
[NixOS / Nix package]: https://search.nixos.org/packages?from=0&size=1&sort=relevance&type=packages&query=hurl
|
2022-05-31 15:36:54 +03:00
|
|
|
|