macos 安装openresty make: /Applications/Xcode: No such file or directory
2015-03-07 23:26
489 查看
openresty官方地址:http://openresty.org/
将openresty安装到macos上
sudo ./configure --prefix=../
报错了make: /Applications/Xcode: No such file or directory
解决方法:
查一下xcrun查找cmd tool时的路径
原来是Xcode 5.1.1.app
在sudo ./configure --prefix=../ 还是报上面的错误
解决方法:
再次运行 sudo ./configure --prefix=../ 报错:./configure: error: the HTTP rewrite module requires the PCRE library
说是缺少PCRE library,那就安装呗。
在安装之前先安装brew:网址:http://brew.sh/ 安装命令:
将openresty安装到macos上
sudo ./configure --prefix=../
报错了make: /Applications/Xcode: No such file or directory
解决方法:
查一下xcrun查找cmd tool时的路径
$ xcode-select -p /Applications/Xcode 5.1.1.app/Contents/Developer
原来是Xcode 5.1.1.app
$ sudo xcode-select -r $ xcode-select -p /Applications/Xcode.app/Contents/Developer
在sudo ./configure --prefix=../ 还是报上面的错误
解决方法:
sudo ln -s /Applications/Xcode\ 5.1.1.app /Applications/Xcode /Applications/Xcode.app/Contents/Developer
再次运行 sudo ./configure --prefix=../ 报错:./configure: error: the HTTP rewrite module requires the PCRE library
说是缺少PCRE library,那就安装呗。
在安装之前先安装brew:网址:http://brew.sh/ 安装命令:
sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"[/code] 安装PCRE命令:brew install pcre
不知道什么原因brew在我的电脑上不好用,搞了半天,果断换工具 macPorts 下载地址及方法见:http://www.macports.org/
注意一定要将/opt/local/bin和/opt/local/sbin添加到$PATH中
export PATH=/opt/local/bin:$PATH
export PATH=/opt/local/sbin:$PATH
如果第一次使用macPorts不好用,要先执行下更新操作
sudo port -v selfupdate
ok下面开始安装pcre
port install pcre
再次执行sudo ./configure --prefix=../ 终于通过了
之后就是make && make install
ok安装成功
相关文章推荐
- linux下安装vmware Could not open /dev/vmmon: No such file or directory. Please make sure that the kerne
- thrift 安装 make 失败 ar: .libs/ThriftTest_constants.o: No such file or directory
- Linux安装graphite:cannot open shared object file: No such file or directory
- make directory /Users/macbook/Library/Developer/Xcode/DerivedData/MapViewDemo: No such file or direc
- 10g安装提示“libXp.so.6: cannot open shared object file: No such file or directory ”
- 安装MySQL-python报错:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory或者 build\lib.win-amd64-2.7\_mysql.pyd : fatal error LNK1120: 56 unresolved externa
- 安装tensorflow,出现libcudart.so.7.5: cannot open shared object file: No such file or directory
- CentOS 安装 oralce Java的图形出错: libXtst.so.6: cannot open shared object file: No such file or directory
- 安装tensorflow,pycharm中出现libcudart.so.8.0: can't open shared object file: No such file or directory
- git安装后出现fatal:open /dev/null or dup failed: No such file or directory
- win7 VC6.0 安装 fatal error C1083: Cannot open include file: 'Iphlpapi.h': No such file or directory
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
- (转)win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
- nginx报错 [error] open() “/usr/local/var/run/openresty.pid” failed (2: No such file or directory)
- oracle 安装过程中遇到的问题1: libXp.so.6: cannot open shared objectfile: No such file or directory
- CentOS6.5环境安装VMware虚拟机----解决启动虚拟机时could not open /dev/vmmon: No such file or directory的问题
- 安装VS简化版。解决编译器报错“Cannot open include file: 'iostream.h': No such file or directory”
- linux 安装 VTK 提示libvtkNetCDF_cxx.so: cannot open shared object file: No such file or directory 的解决办法
- TensorFlow安装之后导入报错:libcudnn.so.6:cannot open sharedobject file: No such file or directory