Closed xtrycatchx closed 6 years ago
rustc --version
returns 1.27.2 on my box..
updated above post with rustc version
@xtrycatchx exact same error we see on latest codebase with out-of-date rust. Please try to use stable rust and make sure that you perform build and check/update rustc in same environment
I also run into error compiling on Mac OS
error: failed to run custom build command for libsodium-sys v0.0.16
process didn't exit successfully: /Users/andrewtan/indy-sdk/libindy/target/debug/build/libsodium-sys-27f6bec8f7337955/build-script-build
(exit code: 101)
--- stdout
cargo:rerun-if-env-changed=SODIUM_LIB_DIR
cargo:rerun-if-env-changed=SODIUM_STATIC
--- stderr
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: "\"pkg-config\" \"--libs\" \"--cflags\" \"libsodium\"
did not exit successfully: exit code: 1\n--- stderr\nPackage libsodium was not found in the pkg-config search path.\nPerhaps you should add the directory containing libsodium.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libsodium\' found\n"', libcore/result.rs:945:5 note: Run with
RUST_BACKTRACE=1` for a backtrace.
warning: build failed, waiting for other jobs to finish... error: build failed
Any idea why?
tnx @jovfer and @asmallfurrywombat , indeed the problem was with the older version of rust.
Steps:
Below are the errors: