我正在尝试在我的服务器上安装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 ` 如果我输入哪个libtool,我会得到/usr/bin/ libtool,所以我认为安装了libtool。所以我不确定为什么会发生这个错误。
谢谢你的建议
发布于 2013-03-29 20:55:47
该错误告诉您没有安装libtool,或者您没有在configure.ac中检查它。在configure.ac中添加行LT_INIT。如果autoreconf抱怨它不知道LT_INIT是什么,你应该安装libtool,升级你的libtool安装,或者使用configure.ac中不推荐使用的AC_PROG_LIBTOOL。(在较新的项目中,应该用LT_INIT替换AC_PROG_LIBTOOL。)
发布于 2014-02-02 03:54:38
我也有同样的问题。做了以下事情
$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-12-28 03:03:30
我在centos中为nginx安装geoip时遇到了同样的问题(当我试图运行make命令时),这就是我所做的。yum install libtool在configure.in AC_CONFIG_MACRO_DIR(m4)末尾的一行下面添加
在Makefile.am ACLOCAL_AMFLAGS = -I m4的末尾添加以下行
运行$ aclocal $ libtoolize
别问我为什么。但这个方法奏效了。
https://stackoverflow.com/questions/15703522
复制相似问题