[compiler error]Linux libtool

configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. + automake --foreign --copy --add-missing -Woverride src/common/compress/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined src/common/compress/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/common/compress/Makefile.am:9: to `configure.ac' and run `aclocal' and `autoconf' again. src/common/compress/Makefile.am:9: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure src/common/compress/Makefile.am:9: its definition is in aclocal's search path. 解法: 1.安裝libtool ubuntu/Debain sudo apt-get install libtool Fedora/Redhat yum install libtool 2.没有正確aclocal的LIBTOOL.m4的路徑 —-查看aclocal的path aclocal –print-ac-dir —-如果相對應的*.m4文件不在這個目錄,则重新配置或是複製過來 libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the libtool: definition of this LT_INIT comes from libtool 2.4. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1ubuntu1 libtool: and run autoconf again. 解法: 請在此套件的目錄下 執行 autoreconf -ivf ,再嘗試重新編譯應該就正常了.

留言