我剛升級到Yosemite。我使用的是Apache 2.2,但升級包括2.4。經過一些配置噩夢後,我結束了使用Homebrew重新安裝2.4。我有它大部分配置。然而,當我使用PHP老httpd.conf的設置,我得到以下錯誤:icu4c - 使用Homebrew安裝Yosemite後更新/安裝php
Symbol not found: _unixd_config\n Referenced from: /usr/local/opt/php55/libexec/apache2/libphp5.so\n Expected in: /usr/local/Cellar/httpd24/2.4.10/bin/httpd\n in /usr/local/opt/php55/libexec/apache2/libphp5.so
當運行brew upgrade php55
我收到以下錯誤ICU4C更新時:
==> Upgrading icu4c
==> Downloading http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/icu4c-54.1.tgz
Error: SHA1 mismatch
Expected: 8c752490bbf31cea26e20246430cee67d48abe34
Actual: d625398a0d5cb34a0b5b2c4ab577e3b1957fb460
Archive: /Library/Caches/Homebrew/icu4c-54.1.tgz
To retry an incomplete download, remove the file above.
刪除文件不沒有幫助。我跑了brew doctor
,這給了我這個關於php:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/usr/local/opt/php55/bin/php-config
不知道如何繼續。我試圖安裝php56,但它需要相同的依賴關係。似乎是一個icu4c問題,但這對我來說是一個未知的領域。謝謝
如果你還沒有安裝xcode 6.1。它不在應用商店(但),但你可以從https://developer.apple.com/xcode/downloads/ - >「其他工具」(應該在頁面頂部)下載它 – soderlind 2014-10-20 08:31:09
@PerS仍然得到不幸的是,相同的SHA1不匹配錯誤。 – Grant 2014-10-21 00:11:44
你在httpd.config中爲php設置了什麼? – bottleboot 2014-10-21 22:04:44