fengsp / pencil

A web application microframework for Rust
https://fengsp.github.io/pencil/
Other
872 stars 43 forks source link

failed to run custom build command for `openssl v0.7.14` #54

Open tyagi2109 opened 6 years ago

tyagi2109 commented 6 years ago

Hi,

Not able to build pencil project on Mac OS X. Got this Error.

error: failed to run custom build command for openssl v0.7.14 process didn't exit successfully: /private/tmp/p1/target/debug/build/openssl-acc287ae94d4e2d3/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 DEBUG = Some("true") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "-o" "/private/tmp/p1/target/debug/build/openssl-8eb0017b41a0b327/out/src/c_helpers.o" "-c" "src/c_helpers.c" cargo:warning=src/c_helpers.c:1:10: fatal error: 'openssl/ssl.h' file not found cargo:warning=#include <openssl/ssl.h> cargo:warning= ^ cargo:warning=1 error generated. exit code: 1

--- stderr thread 'main' panicked at '

Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "-o" "/private/tmp/p1/target/debug/build/openssl-8eb0017b41a0b327/out/src/c_helpers.o" "-c" "src/c_helpers.c" with args "cc" did not execute successfully (status code exit code: 1).

kloenk commented 5 years ago

+1

nenodias commented 5 years ago

Install servo dependencies and try again with cargo clean cargo build

https://github.com/servo/servo#prerequisites