MacOS版本:10.12.3html
Resin版本:4.0.51併發
進入Resin下載文件根目錄,執行configure命令。進行相關配置。app
sudo ./configure --prefix=/usr/local/share/resin \
--with-resin-root=/var/resin \
--with-resin-log=/var/log/resin \
--with-resin-conf=/etc/resinspa
執行完成後提示失敗,直接查看執行日誌,並發現提示:日誌
conftest.c:1:10: fatal error: 'openssl/ssl.h' file not foundhtm
因而我查看了openssl安裝目錄,經過命令:which openssl,發現已經安裝了openssl,安裝路徑:/usr/bin/opensslblog
因而百度一番,發如今MacOS的升級最新版本中再也不提供openssl。ssl
官方說明:https://lists.apple.com/archives/macnetworkprog/2015/Jun/msg00025.htmlopenssl
因而我認爲系統既然不提供openssl,使openssl作爲一款軟件安裝。那麼Resin的configure命令說不定會支持配置openssl的路徑,因而打開configure文件搜索"openssl"發現以下圖:it
因而我將Resin的編譯命令改了一下指定Openssl的路徑:--with-openssl=/usr/local/opt/openssl,從新在Resin根目錄下執行:
sudo ./configure --prefix=/usr/local/share/resin \
--with-resin-root=/var/resin \
--with-resin-log=/var/log/resin \
--with-resin-conf=/etc/resin \
--with-openssl=/usr/local/opt/openssl
終於順利執行完成。