12

我试图在我的服务器上安装 ffmpeg。我不喜欢centos 5。

当我尝试安装 libfdk_aac 时,出现以下错误

` 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 ` 

如果我输入 which libtool 我会得到 /usr/bin/libtool,所以我认为 libtool 已安装。所以我不确定为什么会发生这个错误。

感谢您的任何建议

4

4 回答 4

11

该错误告诉您libtool未安装,或者您没有在configure.ac. LT_INITconfigure.ac. _ 如果autoreconf然后抱怨它不知道是什么LT_INIT,您应该安装 libtool,升级您的 libtool 安装或使用AC_PROG_LIBTOOLconfigure.ac 中已弃用的。(AC_PROG_LIBTOOL应该LT_INIT在较新的项目中替换为。)

于 2013-03-29T12:55:47.270 回答
6

我遇到过同样的问题。做了以下

$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
  /usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M
fdk-aac $ glibtoolize
fdk-aac $ autoreconf -fiv
fdk-aac $ ./configure
fdk-aac $ make
fdk-aac $ make -install
go to ffmpeg/build
ffmpeg/build$ ../configure --enable-libfdk-aac --enable-nonfree
ffmpeg/build$make
ffmpeg/build$sudo make install
do ls /usr/local/lib/*fdk* check that libfdk-aac is installed
go to my application

 myapp/build$cmake ../
 myapp/build$make

希望这可以帮助

于 2014-02-01T19:54:38.203 回答
1

I came across the same issue when install geoip for nginx in centos (when trying to run make command) and this is what I have done. yum install libtool Added below line at the end of configure.in AC_CONFIG_MACRO_DIR([m4])

Add below line at the end of Makefile.am ACLOCAL_AMFLAGS = -I m4

run $ aclocal $ libtoolize

Don't ask me why. But this worked.

于 2014-12-27T19:03:30.137 回答
0

I had this problem when doing ./autogen.sh for cairo.

The complaining message does make much intelligible sense really.

But the following fixed it:

$ export ACLOCAL_PATH="/usr/share/aclocal/:/usr/local/share/aclocal"
$ ./autogen.sh
于 2021-09-25T10:21:20.450 回答