解决Nginx编译报“aclocal-1.15: command not found”错误的问题
程序员文章站
2022-06-04 13:18:25
...
最近使用Nginx为Grpc作负载均衡,由于Nginx到upstream的连接都是短连接,而连接数又很多,十分消耗资源
考虑设置keepalive,但grpc的keepalive在1.15.6版本才支持,因次需要升级版本,编译到最后(编译pcre-8.42),报出如下错误:
... ...
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/>
Makefile:1357: recipe for target 'aclocal.m4' failed
make[3]: *** [aclocal.m4] Error 127
... ...
在网上找了很多方法都无法解决,在https://*.com/questions/33278928/how-to-overcome-aclocal-1-15-is-missing-on-your-system-warning找到了解决方案:
- 因为对C很不熟悉,所以不是很理解导致在nginx目录下直接运行
autoreconf -f -i
命令,仅仅是报错 - 后来发现是在pcre目录下编译,因此,在编译脚本最开始,先cd到pcre目录下,运行该命令,然后执行编译工作,OK,终于成功了!
上一篇: PHP简单实现文本计数器的方法_PHP