make[1]: *** [/usr/local/pcre//Makefile] Error 127
来源:互联网 发布:山东博达网络 编辑:程序博客网 时间:2024/06/05 04:00
环境 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是设置源码目录,而不是编译安装后的目录。
- make[1]: *** [/usr/local/pcre//Makefile] Error 127
- make[1]: *** [/usr/local/pcre//Makefile] Error 127
- NGINX安装时make[1]: *** [/usr/local/pcre//Makefile] Error 127
- [/usr/share/doc/pcre-8.32/Makefile] Error 127解决办法
- make: execvp: /usr/local/cuda: 权限不够 Makefile:588: recipe for target '.build_release/cuda/src/caffe/l
- ERROR /usr/local/nginx/logs/ nginx.pid"
- 无法使用make prefix=/usr/local/git all
- /usr/local/bin/memcached: error while loading shared libraries: libevent-1.3.so.1: cannot open share
- /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1
- linux make all error: make: *** Makefile: Input/output error. Stop.
- error: [Errno 13] Permission denied: '/usr/local/lib/处理方法
- configure: error: Cannot find libmysqlclient under /usr/local/mysql.
- configure: error: in `/usr/local/src/php-5.6.9':
- nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
- Error: Could not link:/usr/local/etc/bash_completion.d/brew
- nginx: [error] open() "/usr/local/nginx//logs/nginx.pid" failed
- Error: Could not link: /usr/local/share/doc/homebrew
- Error: Could not link: /usr/local/share/doc/homebrew
- Discuz!所有版本通杀 存储型XSS 0day
- android学习_配置启动虚拟机
- myeclipse 8.5安装aptana插件
- C# 代码结构-大小写的区别
- Apache Tomcat, Servlet, AJAX
- make[1]: *** [/usr/local/pcre//Makefile] Error 127
- hdu 4090 bfs+dfs+状态压缩+hash判重
- Uva - 1416 Warfare And Logistics dijkstra维护..题目范围有误..
- 静态和非静态方法
- 警告: Error setting expression 'schance.chc_status' with value '[Ljava.lang.String;@13e6346'
- hdu 1237 简单计算器
- IE核心不支持JSON.parse方法
- Android中的请求码与结果码
- 奇数幻方(魔方阵)算法