![]() ![]() If you don't want to set this for every shell you open, add it to your shell initialization files (like ~/.bash_profile). If you've already done one cargo build, you will need to run cargo clean first to clear our some stale cached information. ![]() OPENSSL_LIB_DIR=/usr/local/Cellar/openssl/1.0.2e/lib \ The quick solution is to install OpenSSL with Homebrew and then explicitly point to the directories where OpenSSL is found by setting the OPENSSL_INCLUDE_DIR and OPENSSL_LIB_DIR environment variables: OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2e/include \ This is a known issue (also this and this), but not one that the crate can fix. If you need to support a version prior to that or choose to not use Homebrew, read on. I don't know what I have to do in order to make this installation work and give Iron a try.Īs of rust-openssl version 0.8, Homebrew-installed OpenSSL libraries will be automatically detected by the crate, there is no need to set extra environment variables. Openssl version seems OK: $ openssl version Src/openssl_shim.c:1:10: fatal error: 'openssl/hmac.h' file not found Running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-fPIC" "-o" "/xxx/rust/hello/target/debug/build/openssl-sys-extras-413d6c73b37a590d/out/src/openssl_shim.o" "-c" "src/openssl_shim.c"Ĭommand did not execute successfully, got: exit code: 1 Process didn't exit successfully: `/xxx/rust/hello/target/debug/build/openssl-sys-extras-413d6c73b37a590d/build-script-build` (exit code: 101) HOW TO UPDATE OPENSSL ON MAC OS 10.12 MAC OS XI tried to install the Iron framework for Rust on Mac OS X 10.11.2, but it failed when I run cargo build or cargo run on compiling openssl's stuff: failed to run custom build command for `openssl-sys-extras v0.7.4` ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |