OpenSSL crate fails compilation on Mac OS X 10.11

前端 未结 4 856
北荒
北荒 2020-11-30 05:33

I 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

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 05:50

    https://stackoverflow.com/a/39380733/1317564's answer for MacPorts:

    sudo port install openssl
    export OPENSSL_INCLUDE_DIR=/opt/local/include
    export OPENSSL_LIB_DIR=/opt/local/lib
    cargo clean
    cargo build
    

提交回复
热议问题