安装nginx中的错误

我下载了nginx的tar包,然后进行安装

发现pcre不存在
然后下载pcre 的tar包到/home/temp
然后configure&make&make install
安装后发现要用的是源码,而不是安装
就把源码复制到/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

怎么办啊?

阅读 4.5k
2 个回答
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

何必自己编译?官方明明就有软件仓库啊,直接用系统的包管理安装不好么?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题