我有一个Ubuntu 13.10 32位系统。最近,当我尝试通过运行
错误。我已经安装了
我该如何修复这个alocal错误?
编辑:
一段时间前,我从源代码编译并安装了最新版本的automake,因为一个源代码需要较新版本的automake来运行configure进程。 从那时起,每当我在源代码目录中运行标准的
错误
给我
./autogen.sh
和./configure
来编译时,我遇到了问题。 PKG_PROG_PKG_CONFIG: command not found
错误。我已经安装了
libtool
。在usr/share/
目录下有三个aclocal文件,分别是alocal
、aclocal-1.13
和aclocal-1.4
。我该如何修复这个alocal错误?
编辑:
一段时间前,我从源代码编译并安装了最新版本的automake,因为一个源代码需要较新版本的automake来运行configure进程。 从那时起,每当我在源代码目录中运行标准的
./autogen
和/configure
命令生成makefile
时,我都会得到以下错误信息: PKG_PROG_PKG_CONFIG: command not found
错误
find /usr -name "pkg.m4"
给我
/usr/share/aclocal/pkg.m4
并且
aclocal --print-ac-dir
给我
/usr/local/share/aclocal
pkg-config
包已安装吗?您的系统上是否存在文件/usr/share/aclocal/pkg.m4
? - steeldriverfind /usr -name "pkg.m4"
告诉我/usr/share/aclocal/pkg.m4
。 - kennaclocal --print-ac-dir
会输出什么内容? - steeldriver/usr/local/share/aclocal
路径。 - kennpkg.m4
宏文件在/usr/share
目录下,但由于某种原因aclocal正在寻找/usr/local/share
目录。在不了解你是如何陷入这种情况的情况下,很难建议最佳修复方法 - 也许你安装了一个本地(非标准)版本的automake
? - steeldriverpkg-config
,但问题并未解决。感谢您帮助我找出了问题所在。谢谢。 - kennACLOCAL_PATH
环境变量,例如ACLOCAL_PATH=/usr/share/aclocal ./autogen.sh
或export ACLOCAL_PATH=/usr/share/aclocal ; ./autogen.sh ; ./configure
- 请参阅此处。 - steeldriver