鍍金池/ 問答/Linux/ 安裝nginx中的錯(cuò)誤

安裝nginx中的錯(cuò)誤

我下載了nginx的tar包,然后進(jìn)行安裝

發(fā)現(xiàn)pcre不存在
然后下載pcre 的tar包到/home/temp
然后configure&make&make install
安裝后發(fā)現(xiàn)要用的是源碼,而不是安裝
就把源碼復(fù)制到/usr/local/src/下,
然后命令:

./configure  --prefix=/usr/local/nginx --with-pcre=/usr/local/src/pcre-8.40

接著

[root@nginx-server nginx-1.13.8]# make
make -f objs/Makefile
make[1]: Entering directory `/home/temp/nginx-1.13.8'
cd /usr/local/src/pcre-8.40 \
        && if [ -f Makefile ]; then make distclean; fi \
        && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
        ./configure --disable-shared 
make[2]: Entering directory `/usr/local/src/pcre-8.40'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/temp/pcre-8.40/missing aclocal-1.15 -I m4
/home/temp/pcre-8.40/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[2]: *** [aclocal.m4] Error 127
make[2]: Leaving directory `/usr/local/src/pcre-8.40'
make[1]: *** [/usr/local/src/pcre-8.40/Makefile] Error 2
make[1]: Leaving directory `/home/temp/nginx-1.13.8'
make: *** [build] Error 2

怎么辦???

回答
編輯回答
壞脾滊

何必自己編譯?官方明明就有軟件倉庫啊,直接用系統(tǒng)的包管理安裝不好么?

2017年7月24日 08:27
編輯回答
野橘
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/temp/pcre-8.40/missing aclocal-1.15 -I m4
/home/temp/pcre-8.40/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.

裝一下 aclocal-1.15
apt install autoconf automake

2018年6月24日 11:14