[mac]brew install nginx,出现编译错误怎么办?

错误如下:

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

Already downloaded: /Library/Caches/Homebrew/nginx-1.6.2.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

google了一番,有一篇文章提到,这是由于xcode没有安装command line tools导致的,但是,我在另外一台机器上同样用homebrew装nginx就没有问题, 检查了一下两边的xcode版本,发现6.0.1有问题,最新的6.1.1是OK的,于是升级了一下xcode,重新跑brew install nginx, 就OK了

时间: 2024-10-10 14:45:32

[mac]brew install nginx,出现编译错误怎么办?的相关文章

Mac Brew Install Nginx Summary

==> Downloading https://homebrew.bintray.com/bottles/nginx-1.10.1.el_capitan.bot######################################################################## 100.0%==> Pouring nginx-1.10.1.el_capitan.bottle.tar.gz==> CaveatsDocroot is: /usr/local/var/

mac brew install redis 报错

mac brew install redis 报错 /usr/local/opt/php55/bin/phpize /usr/local/opt/php55/bin/phpize: line 61: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/opt/php55/bin/phpize: line 62: /usr/local/Library/ENV/4.3/sed: No such file or di

mac brew install redis

在mac 下安装redis 执行brew install redis ==> Downloading http://download.redis.io/releases/redis-2.8.19.tar.gz ######################################################################## 100.0% ==> make install PREFIX=/usr/local/Cellar/redis/2.8.19 CC=clang

mac brew install error

Error: No available formula with the name "pygame" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fet

mac安装brew和nginx

1.安装brew 运行如下代码: 安装命令如下:curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 当brew安装成功后,就可以随意安装自己想要的软件了,例如wget,命令如下:sudo brew install wget 卸载的话,命令如下:sudo brew uninstall wget 查看安装软件的话,命令如下:sudo brew search /a

mac学习笔记:brew 安装nginx

安装: brew install nginx 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|重启|停止|退出 nginx nginx -s reload|reopen|stop|quit #打开 nginx sudo nginx #测试配置是否有语法错误 ngin

Mac下brew/memcached/nginx的安装

brew  https://www.cnblogs.com/fireworld/p/8609190.html memcached https://blog.csdn.net/whereismatrix/article/details/50485570 memcached https://www.cnblogs.com/fengwenit/p/6381100.html nginx  https://www.cnblogs.com/meng1314-shuai/p/8335140.html ruby

mac brew nginx php php-fpm xdebug

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { } 534  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 535  /usr/local/bin/brew

mac下安装nginx和php

一.前话:1.1.环境选择:重新在mac上配置php,原本mac上就自带有apach.php以及pgsql,如果图简单的话,直接用就可以了,不过在安装前我仔细思考了一下几个问题:选apache还是nginx:两个我了解的都比较少,相对而言我接触nginx比较多,服务器用的也是nginx,没办法谁叫nginx负载高呢.为了更好的接触nginx的环境,我决定还是统一下环境,方便今后使用,这是这次的主要关键:安 装php:Mac os自带了php,好像是5.3.8,版本比较落后,不过这不碍事,因为以前