Linux安装nginx进行make的报错 原因pcre及其源代码路径
生活随笔
收集整理的這篇文章主要介紹了
Linux安装nginx进行make的报错 原因pcre及其源代码路径
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題1:缺少pcre
./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option.?方法1
上面步驟很明顯缺少了一個叫pcre的庫文件,安裝好后并指定pcre的源代碼的路徑,我們接著安裝。問題 2:pcre的源代碼路徑
[root@localhost nginx-1.10.3]# make make -f objs/Makefile make[1]: Entering directory `/home/nginx/nginx-1.10.3' cd /home/pcre/install \ && if [ -f Makefile ]; then make distclean; fi \ && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \ ./configure --disable-shared /bin/sh: line 2: ./configure: No such file or directory make[1]: *** [/home/pcre/install/Makefile] Error 127 make[1]: Leaving directory `/home/nginx/nginx-1.10.3' make: *** [build] Error 2方法2
通過查閱資料原來檢測環境時,不是指向安裝后目錄,指向pcre的源目錄。如下所示即可 [root@localhost nginx-1.10.3]# ./configure --prefix=/home/nginx/inistall --with-pcre=/home/pcre/pcre-8.40結果:記得一定要開對應的端口哈!
?
https://blog.csdn.net/seven_zhao/article/details/48734847?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1
?
總結
以上是生活随笔為你收集整理的Linux安装nginx进行make的报错 原因pcre及其源代码路径的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 长期s挡开车对车有什么影响,其实99%的
- 下一篇: Linux报错netstat: comm