编译protobuf-3.11.4 错误: aclocal-1.15: command not found的解决办法
生活随笔
收集整理的這篇文章主要介紹了
编译protobuf-3.11.4 错误: aclocal-1.15: command not found的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
操作系統:kylinV10
protobuf版本:3.11.4
當編譯protobuf時,執行以下命令:
./configure --prefix=$LEAN/protobuf3.11.4出現以下錯誤:
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /data3/deepblue/projects/build/protobuf-3.11.4/missing aclocal-1.15 -I m4 /data3/deepblue/projects/build/protobuf-3.11.4/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: *** [Makefile:1683: aclocal.m4] Error 127貌似是缺少了aclocal-1.15這個程序,然后我就開始查詢系統中是否安裝了aclocal。命令行輸入以下執行:
aclocal --version輸出以下內容:
aclocal (GNU automake) 1.16.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.Written by Tom Tromey <tromey@redhat.com>and Alexandre Duret-Lutz <adl@gnu.org>.可以看到,本機器上的aclocal版本過高(1.16>1.15),于是想到有兩個解決辦法:
1.修改configure文件里對aclocal版本的版本號。
2.在本機安裝aclocal-1.15
因為考慮到安裝aclocal-1.15是把版本降低了,我決定選擇1,去改configure文件
打開configure文件,查找aclocal關鍵字,發現相關內容:
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}于是再查找am__api_version,發現版本號的具體內容:
am__api_version='1.15'于是嘗試著把1.15修改成1.16,如下所示:
am__api_version='1.16'修改后,保存文件,繼續執行以下命令:
./configure --prefix=$LEAN/protobuf3.11.4編譯成功,鼓掌。
總結
以上是生活随笔為你收集整理的编译protobuf-3.11.4 错误: aclocal-1.15: command not found的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 错误fatal error: zlib.
- 下一篇: 编译opencv4.2时出现undefi