hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
668 stars 735 forks source link

Cargo build failing on Mac OS X #281

Closed bdot closed 6 years ago

bdot commented 7 years ago

Cargo build is failing on Mac OS X (El Capitan). Looks like this isn't new, see https://github.com/evernym/sovrin-client-rust/issues/84

Instructions followed https://github.com/hyperledger/indy-sdk/blob/master/doc/mac-build.md

Stack trace

$ cargo build
   Compiling libsodium-sys v0.0.14
   Compiling openssl-sys v0.9.16
   Compiling zmq-pw-sys v0.9.8
   Compiling rusqlite v0.10.1
error: failed to run custom build command for `libsodium-sys v0.0.14`
process didn't exit successfully: `/Volumes/d/java/labs/indy-sdk/libindy/target/debug/build/libsodium-sys-c34349471c02cc69/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)"', src/libcore/result.rs:860:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed**
jovfer commented 6 years ago

Fixed instruction in https://github.com/hyperledger/indy-sdk/pull/283