Libtool library used but `LIBTOOL' is undefine

2019-04-06 21:00发布

问题:

Im trying to install ffmpeg on my server. Im unsing centos 5.

When I try to install libfdk_aac I get the following error

` autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am:31: Libtool library used but `LIBTOOL' is undefined
Makefile.am:31:
Makefile.am:31: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:31: to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
autoreconf: automake failed with exit status: 1 ` 

If i type which libtool I get /usr/bin/libtool, so i think libtool is installed. So im not sure why this error is happening.

Thanks for any advice

回答1:

The error is not telling you that libtool is not installed, but that you are not checking for it in configure.ac. Add the line LT_INIT in configure.ac. If autoreconf then complains that it doesn't know what LT_INIT is, you should either upgrade your installation of libtool or use AC_PROG_LIBTOOL. (AC_PROG_LIBTOOL should be replaced by LT_INIT in newer projects.)



回答2:

I had the same issue. Did the following

$brew install libtool
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-    2.4.2.mavericks.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.2.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary