make[1]: *** [/usr/local/pcre//Makefile] Error 127
2016-05-03 16:58
716 查看
环境 nginx 1.0.5
configure 配置通过
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/ --with-openssl=/usr/local/openssl/ --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --user=nginx --group=nginx
make 错误
[root@nginx nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/root/nginx/nginx-1.0.5'
cd /usr/local/pcre/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/pcre//Makefile] Error 127
make[1]: Leaving directory `/root/nginx/nginx-1.0.5'
make: *** [build] Error 2
google
make[1]: *** [/usr/local/pcre//Makefile] Error 127
分析
[root@nginx nginx-1.0.5]# ./configure --help | grep '\--with-pcre'
--with-pcre force PCRE library usage
--with-pcre=DIR set path to PCRE library sources
--with-pcre-opt=OPTIONS set additional options for PCRE building
source ????????
解决
[root@nginx nginx-1.0.5]# ./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.12/ --with-openssl=/usr/local/openssl/ --with-http_ssl_module
--with-http_flv_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --user=nginx --group=nginx
[root@nginx nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/root/nginx/nginx-1.0.5'
cd ../pcre-8.12/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... make[1]: *** [../pcre-8.12//Makefile]
ok
总结:--with-pcre=DIR 是设置源码目录,而不是编译安装后的目录。
http://dngood.blog.51cto.com/446195/623925
configure 配置通过
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/ --with-openssl=/usr/local/openssl/ --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --user=nginx --group=nginx
make 错误
[root@nginx nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/root/nginx/nginx-1.0.5'
cd /usr/local/pcre/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/pcre//Makefile] Error 127
make[1]: Leaving directory `/root/nginx/nginx-1.0.5'
make: *** [build] Error 2
make[1]: *** [/usr/local/pcre//Makefile] Error 127
分析
[root@nginx nginx-1.0.5]# ./configure --help | grep '\--with-pcre'
--with-pcre force PCRE library usage
--with-pcre=DIR set path to PCRE library sources
--with-pcre-opt=OPTIONS set additional options for PCRE building
source ????????
解决
[root@nginx nginx-1.0.5]# ./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.12/ --with-openssl=/usr/local/openssl/ --with-http_ssl_module
--with-http_flv_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --user=nginx --group=nginx
[root@nginx nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/root/nginx/nginx-1.0.5'
cd ../pcre-8.12/ \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... make[1]: *** [../pcre-8.12//Makefile]
ok
总结:--with-pcre=DIR 是设置源码目录,而不是编译安装后的目录。
http://dngood.blog.51cto.com/446195/623925
相关文章推荐
- camera issues
- java enum多路分发下浅识表驱动式编程
- UE4:Android调试部署到手机时,提示"输入字符串不正确"
- c#操作XML文件:增,删,改,查(返回DataTable)
- vsphere的一些基本概念
- 安全性测试之修改密码
- github 使用教程初级版
- UE4|操作设置+蓝图辅助
- android 5.0 以上获取栈顶应用包名以及程序锁的实现
- 4.DIV+CSS布局
- java线程深度解析(一)——java new 接口?匿名内部类给你答案
- jquery 如何动态添加、删除class样式方法介绍
- 杀毒软件20年潜规则:穷则思变
- subversion 备份 迁移
- hopper反汇编工具的逆向伪代码功能并不理想
- C. The Two Routes---cf602C(Dij)
- 复合索引使用的先决条件
- ACM-括号配对问题 ASCII码的运用|std::vector/std::list的区别与使用
- 深度剖析adaboost
- 根据流程定义名称获得流程定义ID出错