[mac]brew install nginx,出現編譯錯誤怎麼辦?

WBOY
發布: 2016-08-08 09:31:57
原創
1021 人瀏覽過

錯誤如下:

==> Downloading http://nginx.org/download/nginx-1.6.2.tar.gz

Already downloaded: /Library/Cax/Brew/6. .tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx/1.6.2 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr /local/Cel
 + Darwin 14.0.0 x86_64
checking for C compiler ... not found

./configure: error: C compiler clang is not found foundo到,這是由於xcode沒有安裝command line tools導致的,但是,我在另一台機器上同樣用homebrew裝nginx就沒有問題, 檢查了一下兩邊的xcode版本,發現6.0.1有問題,最新的6.1 .1是OK的,於是升級了一下xcode,重新跑brew install nginx, 就OK了

以上就介紹了[mac]brew install nginx,出現編譯錯誤怎麼辦? ,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!