mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-28 21:42:51 +03:00
Merge pull request #142 from Orange-OpenSource/doc/rewrite-readme-building-section
enhances linux build steps
This commit is contained in:
commit
f2417f9c2e
50
README.md
50
README.md
@ -308,28 +308,46 @@ HTTP/* 302
|
||||
[Doc](https://hurl.dev/docs/capturing-response.html#xpath-capture)
|
||||
|
||||
# Building
|
||||
## linux
|
||||
|
||||
Hurl is written in [Rust](https://www.rust-lang.org/).
|
||||
You should [install](https://www.rust-lang.org/tools/install) the
|
||||
latest stable release.
|
||||
## linux, osx
|
||||
|
||||
Hurl depends on libssl, libcurl and libxml2 native libraries.
|
||||
You will need their development files in your platform.
|
||||
Hurl depends on libssl, libcurl and libxml2 native libraries. You will need their development files in your platform.
|
||||
|
||||
```
|
||||
# Ubuntu/Debian
|
||||
apt install pkg-config libssl-dev libcurl4-openssl-dev libxml2-dev
|
||||
```shell
|
||||
# debian based distributions
|
||||
apt install -y pkg-config libssl-dev libcurl4-openssl-dev libxml2-dev
|
||||
|
||||
# redhat based distributions
|
||||
yum install -y pkg-config gcc openssl-devel libxml2-devel
|
||||
|
||||
# arch based distributions
|
||||
pacman -Sy --noconfirm pkgconf gcc openssl libxml2
|
||||
|
||||
# osx
|
||||
brew install pkg-config gcc openssl libxml2
|
||||
```
|
||||
|
||||
```
|
||||
$ git clone https://github.com/Orange-OpenSource/hurl
|
||||
$ cd hurl
|
||||
$ cargo build --release
|
||||
$ ./target/release/hurl --version
|
||||
1.0.0
|
||||
Hurl is written in [Rust](https://www.rust-lang.org/). You should [install](https://www.rust-lang.org/tools/install) the latest stable release.
|
||||
|
||||
# Install binary
|
||||
```shell
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
source $HOME/.cargo/env
|
||||
rustc --version
|
||||
cargo --version
|
||||
```
|
||||
|
||||
clone this project
|
||||
|
||||
```shell
|
||||
git clone https://github.com/Orange-OpenSource/hurl
|
||||
cd hurl
|
||||
cargo build --release
|
||||
./target/release/hurl --version
|
||||
```
|
||||
|
||||
build
|
||||
|
||||
```shell
|
||||
cargo install --path packages/hurl
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user