我有一個重大問題。我有一個穩定的,有效的AMP堆棧,通過使用DNSMASQ動態域名的自制軟件安裝。問題與本地主機在Mac上使用優勝美地的dnsmasq和自制AMP堆疊
今天,我啓動我的Mac發現薩法爾,Chrome和所有Web瀏覽器報告說,他們無法加載本地開發網站(任何人),因爲服務器不能被發現。
我檢查了命令行和域名妥善解決和查驗回來。
➜ ping blck3.dev
PING blck3.dev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.068 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.075 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.095 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.053 ms
--- blck3.dev ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.053/0.075/0.095/0.014 ms
然後我決定來檢查我的Apache配置中的錯誤,我也得到了以下內容:
➜ httpd -v
Server version: Apache/2.4.10 (Unix)
Server built: Jan 8 2015 20:48:33
➜ apachectl configtest
httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php55/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php55/libexec/apache2/libphp5.so, 10): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.54.dylib\n Referenced from: /usr/local/opt/php55/libexec/apache2/libphp5.so\n Reason: image not found
所以,我決定重新安裝php55一些人報告說,重新安裝php55將解決這個問題,但自制的報道說,沒有這樣的公式。
/usr/local/opt
➜ brew info php55
Error: No available formula for php55
✘ /usr/local/opt
➜ brew info php56
Error: No available formula for php56
✘ /usr/local/opt
然後我做了搜索,看看我在我機器上的任何問題,其中我看不出php的公式:
➜ brew search php
php53-sodium php54-sodium php55-sodium php56-sodium virtphp
Caskroom/cask/eclipse-php Caskroom/cask/netbeans-php Caskroom/cask/phpstorm
我感到驚訝的是既不php55,php55- mcrypt,php56和php56-mcrypt都可用。
所以,我檢查,以確保所有相關的水龍頭都正確攻絲:
➜ brew tap homebrew/dupes
Warning: Already tapped!
/usr/local/opt
➜ brew tap homebrew/versions
Warning: Already tapped!
/usr/local/opt
➜ brew tap homebrew/homebrew-php
Warning: Already tapped!
我然後跑沖泡醫生,給了我以下錯誤:
➜ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
binutilsfb
cloog018
gmp4
isl011
libmpc08
mpfr2
rar
我不知道是什麼出了什麼問題,因爲一切都在週五工作正常,沒有被感動過週末了,今天早晨的...似乎沒有正常工作。
請指教,因爲這是對我和我需要儘快解決的一個重大問題。
謝謝
阿里