shadowsocks / shadowsocks-rust

A Rust port of shadowsocks
https://shadowsocks.org/
MIT License
8.59k stars 1.17k forks source link

failed to build #51

Closed HuMoran closed 7 years ago

HuMoran commented 7 years ago

environment:

aws ubuntu 16.04
rustc 1.18.0 (03fc9d622 2017-06-06)
cargo 0.19.0 (28d1d60d4 2017-05-16)
4.12.2-041202-generic

step

git clone  https://github.com/zonyitoo/shadowsocks-rust.git
apt install libcrypto++-dev 
cargo build

result

   Compiling clap v2.25.0
   Compiling aho-corasick v0.6.3
   Compiling lru-cache v0.1.1
   Compiling libsodium-sys v0.0.15
error: failed to run custom build command for `libsodium-sys v0.0.15`
process didn't exit successfully: `/root/shadowsocks-rust/target/debug/build/libsodium-sys-39a193274eecf4b0/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"libsodium\"`: No such file or directory (os error 2)"', /checkout/src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.
zonyitoo commented 7 years ago

Please install libsodium.

HuMoran commented 7 years ago

I got it, thanks

zonyitoo commented 7 years ago

@HuMoran v1.6.0 release has a static-linked binaries.