I have Ubuntu 13.10 32 bit system. Recently when I try to to compile by running ./autogen.sh and ./configure I get
PKG_PROG_PKG_CONFIG: command not found
error. I have libtool installed. I have three aclocal files in usr/share/ like alocal, aclocal-1.13 and aclocal-1.4
How can I fix that alocal error?
EDIT:
Some time ago I compiled latest version of automake from source and installed it because a source code needed recent version of automake to run configure process.
Since then whenever I run standard ./autogen and /configure commands in source directory to generate makefile I get
PKG_PROG_PKG_CONFIG: command not found
error
find /usr -name "pkg.m4"
gives me
/usr/share/aclocal/pkg.m4
and
aclocal --print-ac-dir
gives me
/usr/local/share/aclocal
pkg-configpackage installed? does the file/usr/share/aclocal/pkg.m4exist on your system? – steeldriver May 18 '14 at 14:03find /usr -name "pkg.m4"gives me/usr/share/aclocal/pkg.m4– kenn May 18 '14 at 15:55aclocal --print-ac-dirsay? – steeldriver May 18 '14 at 16:01/usr/local/share/aclocal– kenn May 18 '14 at 16:03pkg.m4macro file is in/usr/sharebut for some reason aclocal is looking in/usr/local/share. It's difficult to suggest the best fix without knowing how you got in that situation - did you install a local (non-standard) version ofautomakemaybe? – steeldriver May 18 '14 at 17:04pkg-configbut it didn't fix it. You helped me pinpoint the problem, Thank you. – kenn May 18 '14 at 17:12ACLOCAL_PATHenvironment variable e.g.ACLOCAL_PATH=/usr/share/aclocal./autogen.shorexport ACLOCAL_PATH=/usr/share/aclocal ; ./autogen.sh ; ./configure` - see here – steeldriver May 18 '14 at 17:20