derniercri / snatch

A simple, fast and interruptable download accelerator, written in Rust
MIT License
676 stars 37 forks source link

Error while installing on Ubuntu 16.04 #34

Closed mahmoudmy closed 7 years ago

mahmoudmy commented 7 years ago

I tried to install Snatch on Ubuntu 16.04, following error occurs:

Build failed, waiting for other jobs to finish...
error: failed to compile `snatch v0.1.1 (https://github.com/derniercri/snatch.git#f447f7ca)`, intermediate artifacts can be found at `/tmp/cargo-install.MvwyPs1F5EQJ`

Caused by:
  failed to run custom build command for `openssl-sys-extras v0.7.14`
process didn't exit successfully: `/tmp/cargo-install.MvwyPs1F5EQJ/release/build/openssl-sys-extras-5c7e4d8925825f00/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-unknown-linux-gnu")
debug=false opt-level=3
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-fPIC" "-o" "/tmp/cargo-install.MvwyPs1F5EQJ/release/build/openssl-sys-extras-5c7e4d8925825f00/out/src/openssl_shim.o" "-c" "src/openssl_shim.c"
cargo:warning=src/openssl_shim.c:1:26: fatal error: openssl/hmac.h: No such file or directory
cargo:warning=compilation terminated.
ExitStatus(ExitStatus(256))

command did not execute successfully, got: exit code: 1

--- stderr
thread 'main' panicked at 'explicit panic', .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.40/src/lib.rs:1006
note: Run with `RUST_BACKTRACE=1` for a backtrace.
k0pernicus commented 7 years ago

Hi, Thank you for the report.

Did you install libssl-dev ? If you don't have this library, you can install it with sudo apt-get install libssl-dev.

k0pernicus commented 7 years ago

I think that the solution works actually - I close this issue, but do not hesitate to reopen it if you have trouble again @mahmoudmy ;-)