From abd59c6c468077ac99cffd1f72357ca7f4378eb7 Mon Sep 17 00:00:00 2001 From: lepapareil Date: Thu, 4 Feb 2021 14:04:17 +0100 Subject: [PATCH] enhances linux build steps --- README.md | 50 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ee3f31715..09929b6dc 100644 --- a/README.md +++ b/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 ```