日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

编译protobuf-3.11.4 错误: aclocal-1.15: command not found的解决办法

發布時間:2024/9/21 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 编译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的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。