configure.ac:91: error: possibly undefined macro: AC_SEARCH_LIBS

debian系统上,手动编译tmux的时候,执行./autogen.sh出现如下报错:

$ ./autogen.sh 
configure.ac:91: error: possibly undefined macro: AC_SEARCH_LIBS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
autoreconf failed

执行如下命令:

$ sudo apt-get install pkg-config

重新执行./autogen.sh,成功~~

posted @ 2019-08-19 17:34  溟漓  阅读(941)  评论(0编辑  收藏  举报