我成功安裝了brew Formula httpd,並且我已經使用它作為我的apache 伺服器已經有一段時間了。直到最近這才成為問題。
我嘗試在終端機中運行 httpd,並得到以下回應:
httpd: Syntax error on line 1 of /usr/local/etc/httpd/httpd.conf:
Syntax error on line 117 of /usr/local/etc/httpd/modules.conf:
Cannot load /usr/local/opt/php/lib/httpd/modules/libphp7.so into server: dlopen(/usr/local/opt/php/lib/httpd/modules/libphp7.so, 10):
Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/opt/php/lib/httpd/modules/libphp7.so\n
Reason: image not found
我該如何解決這個問題?
答案1
公式有問題[電子郵件受保護],於是我就跑了。brew reinstall [email protected]
我用過的一個要點。
https://gist.github.com/hgrimelid/703691ab48c4a4d0537cfe835b4d55a6