Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Building on macOS #73

Open
jasikpark opened this issue Mar 4, 2017 · 2 comments
Open

Building on macOS #73

jasikpark opened this issue Mar 4, 2017 · 2 comments

Comments

@jasikpark
Copy link

I cloned the repository and attempted to install after following the instructions on stack overflow for how to upgrade my openssl to version 1.0.2k, but the build still fails.

  Compiling unicode-normalization v0.1.4
   Compiling idna v0.1.0
   Compiling openssl-sys-extras v0.7.14
Build failed, waiting for other jobs to finish...
error: failed to run custom build command for `openssl-sys-extras v0.7.14`
process didn't exit successfully: `/Users/calebjasik/Documents/spam_or_ham/target/debug/build/openssl-sys-extras-db1a184570b339df/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
HOST = Some("x86_64-apple-darwin")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("debug")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-o" "/Users/calebjasik/Documents/spam_or_ham/target/debug/build/openssl-sys-extras-45159e42f4e1f90d/out/src/openssl_shim.o" "-c" "src/openssl_shim.c"
cargo:warning=src/openssl_shim.c:1:10: fatal error: 'openssl/hmac.h' file not found
cargo:warning=#include <openssl/hmac.h>
cargo:warning=         ^
cargo:warning=1 error generated.
ExitStatus(ExitStatus(256))


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



--- stderr
thread 'main' panicked at 'explicit panic', /Users/calebjasik/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.43/src/lib.rs:1127
note: Run with `RUST_BACKTRACE=1` for a backtrace.

openssl version -a returns 1.0.2k and /usr/bin/openssl version -a returns the same.

@badboy
Copy link
Member

badboy commented Mar 4, 2017

(Disclaimer: I don't have macOS)

Did you install openssl using brew?
If so, you might want to try

OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include \
OPENSSL_LIB_DIR=`brew --prefix openssl`/lib \
cargo build

@skade
Copy link
Contributor

skade commented Aug 3, 2017

I just built it on my machine and it works. Could you please check openssl is correctly installed on your machine?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants