{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/255","labels_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/255/comments","events_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/255/events","html_url":"https://github.com/sfackler/rust-openssl/issues/255","id":101922106,"number":255,"title":"Faild build On OSX 10.11(Elp)","user":{"login":"imiskolee","id":4303880,"avatar_url":"https://avatars.githubusercontent.com/u/4303880?v=3","gravatar_id":"","url":"https://api.github.com/users/imiskolee","html_url":"https://github.com/imiskolee","followers_url":"https://api.github.com/users/imiskolee/followers","following_url":"https://api.github.com/users/imiskolee/following{/other_user}","gists_url":"https://api.github.com/users/imiskolee/gists{/gist_id}","starred_url":"https://api.github.com/users/imiskolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imiskolee/subscriptions","organizations_url":"https://api.github.com/users/imiskolee/orgs","repos_url":"https://api.github.com/users/imiskolee/repos","events_url":"https://api.github.com/users/imiskolee/events{/privacy}","received_events_url":"https://api.github.com/users/imiskolee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-19T15:37:57Z","updated_at":"2015-09-27T13:31:11Z","closed_at":null,"body":"failed to run custom build command for `openssl-sys v0.6.4`\r\nProcess didn't exit successfully: `/Users/misko/developer/rust_projects/aws-simple-sdk.rs/target/debug/build/openssl-sys-149f6ef08ad7404d/build-script-build` (exit code: 101)\r\n--- stdout\r\ncargo:rustc-link-search=native=/usr/lib\r\ncargo:rustc-link-lib=ssl\r\ncargo:rustc-link-lib=crypto\r\ncargo:rustc-link-lib=z\r\nTARGET = Some(\"x86_64-apple-darwin\")\r\nTARGET = Some(\"x86_64-apple-darwin\")\r\nCARGO_MANIFEST_DIR = Some(\"/Users/misko/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.6.4\")\r\nOUT_DIR = Some(\"/Users/misko/developer/rust_projects/aws-simple-sdk.rs/target/debug/build/openssl-sys-149f6ef08ad7404d/out\")\r\nOPT_LEVEL = Some(\"0\")\r\nPROFILE = Some(\"debug\")\r\ndebug 0\r\nTARGET = Some(\"x86_64-apple-darwin\")\r\nHOST = Some(\"x86_64-apple-darwin\")\r\nCC_x86_64-apple-darwin = None\r\nCC_x86_64_apple_darwin = None\r\nHOST_CC = None\r\nCC = None\r\nTARGET = Some(\"x86_64-apple-darwin\")\r\nHOST = Some(\"x86_64-apple-darwin\")\r\nCFLAGS_x86_64-apple-darwin = None\r\nCFLAGS_x86_64_apple_darwin = None\r\nHOST_CFLAGS = None\r\nCFLAGS = None\r\nrunning: \"cc\" \"-O0\" \"-c\" \"-ffunction-sections\" \"-fdata-sections\" \"-g\" \"-m64\" \"-fPIC\" \"-o\" \"/Users/misko/developer/rust_projects/aws-simple-sdk.rs/target/debug/build/openssl-sys-149f6ef08ad7404d/out/src/openssl_shim.o\" \"/Users/misko/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.6.4/src/openssl_shim.c\"\r\n\r\n\r\ncommand did not execute successfully, got: exit code: 1\r\n\r\n\r\n\r\n--- stderr\r\n/Users/misko/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.6.4/src/openssl_shim.c:1:10: fatal error: 'openssl/hmac.h' file not found\r\n#include <openssl/hmac.h>\r\n         ^\r\n1 error generated.\r\nthread '<main>' panicked at 'explicit panic', /Users/misko/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.13/src/lib.rs:510"},"comment":{"url":"https://api.github.com/repos/sfackler/rust-openssl/issues/comments/143550926","html_url":"https://github.com/sfackler/rust-openssl/issues/255#issuecomment-143550926","issue_url":"https://api.github.com/repos/sfackler/rust-openssl/issues/255","id":143550926,"user":{"login":"back2mach","id":8098077,"avatar_url":"https://avatars.githubusercontent.com/u/8098077?v=3","gravatar_id":"","url":"https://api.github.com/users/back2mach","html_url":"https://github.com/back2mach","followers_url":"https://api.github.com/users/back2mach/followers","following_url":"https://api.github.com/users/back2mach/following{/other_user}","gists_url":"https://api.github.com/users/back2mach/gists{/gist_id}","starred_url":"https://api.github.com/users/back2mach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/back2mach/subscriptions","organizations_url":"https://api.github.com/users/back2mach/orgs","repos_url":"https://api.github.com/users/back2mach/repos","events_url":"https://api.github.com/users/back2mach/events{/privacy}","received_events_url":"https://api.github.com/users/back2mach/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T13:31:11Z","updated_at":"2015-09-27T13:31:11Z","body":"I install the openssl using Homebrew, and the this works for me:\r\nexport OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include\r\n"}}