Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"AM_PROG_LIBTOOL" not found in library

I got an error while trying to compile a library in centOS 7, and i tried reinstall libtool but it does not help. Below is the error

+ autoreconf --install
configure.ac:32: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:32: error: possibly undefined macro: AM_PROG_LIBTOOL
      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
like image 594
Moses Liao GZ Avatar asked Mar 19 '15 02:03

Moses Liao GZ


2 Answers

I solved it just by:

sudo yum install libtool

like image 181
SzB Avatar answered Nov 18 '22 20:11

SzB


You might need: autoreconf -fvi to make sure everything is updated.

It's also worth noting that AM_PROG_LIBTOOL is deprecated, and should be replaced with LT_INIT, and optionally with LT_PREREQ beforehand.

like image 39
Brett Hale Avatar answered Nov 18 '22 19:11

Brett Hale