在Mac下配置janus-gateway服务器的时候遇到了找不到`libssl`和`libcrypt

文章首发地址html

在Mac下配置janus-gateway服务器的时候遇到了找不到libssllibcrypto错误,
详情以下:服务器

./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安装一下就能够了。命令行

相关文章
相关标签/搜索