在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安裝一下就能夠了。命令行

相關文章
相關標籤/搜索