1. 错误描述新搭建的build server,编译软件时报错:error: possibly undefined macro: AC_PROG_LIBTOOL1详细的错误信息如下:[20160926_16:03:11] make[8]: Entering directory `/opt/zyu/CM_develop_d31_clone_zyu/erouter/rg_apps/userspace/public/libs/openssl/crypto/md5'[20160926_16:03:11] configure.ac:22: error: possibly undefined macro: AC_PROG_LIBTOOL[20160926_16:03:11] If this token and others are legitimate, please use m4_pattern_allow.[20160926_16:03:11] See the Autoconf documentation.[20160926_16:03:11] autoreconf: /usr/bin/autoconf failed with exit status: 1[20160926_16:03:11] make[8]: Leaving directory `/opt/zyu/CM_develop_d31_clone_zyu/erouter/rg_apps/userspace/public/libs/openssl/crypto/md5'[20160926_16:03:11] making depend in crypto/sha...[20160926_16:03:11] make[8]: Entering directory `/opt/zyu/CM_develop_d31_clone_zyu/erouter/rg_apps/userspace/public/libs/openssl/crypto/sha'[20160926_16:03:11] configure: WARNING: you should use --build, --host, --target[20160926_16:03:11] configure: WARNING: you should use --build, --host, --target[20160926_16:03:11] configure: WARNING: unrecognized options: --disable-static[20160926_16:03:11] configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."[20160926_16:03:12] make[5]: *** [sqlite3] Error 1[20160926_16:03:12] make[5]: *** Waiting for unfinished jobs....1234567891011121314152. 解决办法检查第一个错误信息:[20160926_16:03:11] configure.ac:22: error: possibly undefined macro: AC_PROG_LIBTOOL1从错误信息看,是在处理configure.ac文件时出错了,认为AC_PROG_LIBTOOL是未定义的宏,使得执行autoconf失败,安装libtool包得以解决:sudo apt-get install libtool
博客摘录「 [已解决]error: possibly undefined macro: AC_PROG_LIBTOOL」2023年5月14日
于 2023-05-14 16:56:50 首次发布