2021年5月31日星期一

macbook openssl bio.h not found

Mac 编译安装libimobiledevice出现openssl头文件找不到问题

$ brew install openssl

~/.profile 或者 ~/.bashrc 中添加:

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles #ckbrew

eval $(/opt/homebrew/bin/brew shellenv) #ckbrew


export OPENSSL_PATH=/opt/homebrew/opt/openssl


export PATH="/usr/local/bin:$OPENSSL_PATH/bin:$PATH"


export LDFLAGS="-L$OPENSSL_PATH/lib"

export CPPFLAGS="-I$OPENSSL_PATH/include"


export PKG_CONFIG_PATH="$OPENSSL_PATH/lib/pkgconfig":"${PKG_CONFIG_PATH}"

export DYLD_LIBRARY_PATH="$OPENSSL_PATH/lib:$DYLD_LIBRARY_PATH"

export LD_LIBRARY_PATH=$OPENSSL_PATH/lib:"${LD_LIBRARY_PATH}"

export CPATH=$OPENSSL_PATH/include:"${CPATH}"

1 条评论:

  1. Slots Casino Review & Bonus - jtmhub.com
    The first 광명 출장안마 casino 목포 출장안마 to use our Slots casino site was Microgaming. We 삼척 출장마사지 are constantly adding new and 통영 출장마사지 exciting casino games 제주 출장마사지 to our site.

    回复删除