文章首发地址html
在Mac下配置janus-gateway服务器的时候遇到了找不到libssl
和libcrypto
错误,
详情以下:服务器
./configure ... checking for glib-2.0 >= 2.34 libconfig nice jansson >= 2.5 libssl >= 1.0.1 libcrypto zlib ... no configure: error: Package requirements ( glib-2.0 >= 2.34 libconfig nice jansson >= 2.5 libssl >= 1.0.1 libcrypto zlib ) were not met: No package 'libssl' found No package 'libcrypto' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix
只须要自定义PKG_CONFIG_PATH
便可
在执行 ide
./configure --prefix=/usr/local/janus PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
以前在命令行内执行一下ui
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig
若是没有安装libffi
,可使用 Home brew
安装一下就能够了。命令行