Hello, I donwloaded the latest fontconfig 2.6 to compile under Mac OS X 10.5, it failed with the error: configure: line 22438: PKG_PROG_PKG_CONFIG: command not found Where should I download PKG_PROG_PKG_CONFIG? thanks. Peter
Peter wrote:> Hello, > I donwloaded the latest fontconfig 2.6 to compile under Mac OS X 10.5, > it failed with the error: > > configure: line 22438: > PKG_PROG_PKG_CONFIG: command not found > > Where should I download PKG_PROG_PKG_CONFIG?http://pkg-config.freedesktop.org/ -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering
--- On Sun, 12/28/08, Alan Coopersmith <Alan.Coopersmith at Sun.COM> wrote:> From: Alan Coopersmith <Alan.Coopersmith at Sun.COM> > Subject: Re: [Fontconfig] PKG_PROG_PKG_CONFIG error > To: pcpc168 at sbcglobal.net > Cc: fontconfig at lists.freedesktop.org > Date: Sunday, December 28, 2008, 9:27 AM > Peter wrote: > > Hello, > > I donwloaded the latest fontconfig 2.6 to compile > under Mac OS X 10.5, > > it failed with the error: > > > > configure: line 22438: > > PKG_PROG_PKG_CONFIG: command not found > > > > Where should I download PKG_PROG_PKG_CONFIG? > > http://pkg-config.freedesktop.org/Alan, Thanks. I have pkg-config-0.23.tar.gz installed already. But I still got the same error message under Mac OS X 10.5. Peter
On Sun, Dec 28, 2008 at 12:34 PM, Peter <pcpc168 at sbcglobal.net> wrote:> > > > --- On Sun, 12/28/08, Alan Coopersmith <Alan.Coopersmith at Sun.COM> wrote: > >> From: Alan Coopersmith <Alan.Coopersmith at Sun.COM> >> Subject: Re: [Fontconfig] PKG_PROG_PKG_CONFIG error >> To: pcpc168 at sbcglobal.net >> Cc: fontconfig at lists.freedesktop.org >> Date: Sunday, December 28, 2008, 9:27 AM >> Peter wrote: >> > Hello, >> > I donwloaded the latest fontconfig 2.6 to compile >> under Mac OS X 10.5, >> > it failed with the error: >> > >> > configure: line 22438: >> > PKG_PROG_PKG_CONFIG: command not found >> > >> > Where should I download PKG_PROG_PKG_CONFIG? >> >> http://pkg-config.freedesktop.org/ > > Alan, > Thanks. > I have pkg-config-0.23.tar.gz installed already. But I still got the same > error message under Mac OS X 10.5.You''re getting this error when building from the tarball or you''re pulling fontconfig from freedesktop git? This is an autoconf macro that has failed to expand. If it''s in the tarball like that, then there''s a problem. -- Dan
> >> Peter wrote: > >> > Hello, > >> > I donwloaded the latest fontconfig 2.6 to > compile > >> under Mac OS X 10.5, > >> > it failed with the error: > >> > > >> > configure: line 22438: > >> > PKG_PROG_PKG_CONFIG: command not found > >> > > >> > Where should I download PKG_PROG_PKG_CONFIG? > >> > >> http://pkg-config.freedesktop.org/ > > > > Alan, > > Thanks. > > I have pkg-config-0.23.tar.gz installed already. But I > still got the same > > error message under Mac OS X 10.5. > > You''re getting this error when building from the > tarball or you''re > pulling fontconfig from freedesktop git? This is an > autoconf macro > that has failed to expand. If it''s in the tarball like > that, then > there''s a problem.It is from fontconfig tarball. not sure why it failed to expand, is there a way I can manually expand to see if I can fix the problem? Thanks. Peter
On Tue, Dec 30, 2008 at 3:02 PM, Peter <pcpc168 at sbcglobal.net> wrote:> >> >> Peter wrote: >> >> > Hello, >> >> > I donwloaded the latest fontconfig 2.6 to >> compile >> >> under Mac OS X 10.5, >> >> > it failed with the error: >> >> > >> >> > configure: line 22438: >> >> > PKG_PROG_PKG_CONFIG: command not found >> >> > >> >> > Where should I download PKG_PROG_PKG_CONFIG? >> >> >> >> http://pkg-config.freedesktop.org/ >> > >> > Alan, >> > Thanks. >> > I have pkg-config-0.23.tar.gz installed already. But I >> still got the same >> > error message under Mac OS X 10.5. >> >> You''re getting this error when building from the >> tarball or you''re >> pulling fontconfig from freedesktop git? This is an >> autoconf macro >> that has failed to expand. If it''s in the tarball like >> that, then >> there''s a problem. > > It is from fontconfig tarball. not sure why it failed to expand, > is there a way I can manually expand to see if I can fix the problem?I just looked at the 2.6.0 tarball, and it looks fine. Are you running autoconf or autoreconf after unpacking? Otherwise, run "autoreconf -iv" and make sure that aclocal can find the file pkg.m4. I don''t know how this works on mac, but on linux it would be in /usr/share/aclocal. -- Dan
--- On Tue, 12/30/08, Dan Nicholson <dbn.lists at gmail.com> wrote:> From: Dan Nicholson <dbn.lists at gmail.com> > Subject: Re: [Fontconfig] PKG_PROG_PKG_CONFIG error > To: pcpc168 at sbcglobal.net > Cc: "Alan Coopersmith" <Alan.Coopersmith at sun.com>, fontconfig at lists.freedesktop.org > Date: Tuesday, December 30, 2008, 1:42 PM > On Tue, Dec 30, 2008 at 3:02 PM, Peter > <pcpc168 at sbcglobal.net> wrote: > > > >> >> Peter wrote: > >> >> > Hello, > >> >> > I donwloaded the latest fontconfig > 2.6 to > >> compile > >> >> under Mac OS X 10.5, > >> >> > it failed with the error: > >> >> > > >> >> > configure: line 22438: > >> >> > PKG_PROG_PKG_CONFIG: command not > found > >> >> > > >> >> > Where should I download > PKG_PROG_PKG_CONFIG? > >> >> > >> >> http://pkg-config.freedesktop.org/ > >> > > >> > Alan, > >> > Thanks. > >> > I have pkg-config-0.23.tar.gz installed > already. But I > >> still got the same > >> > error message under Mac OS X 10.5. > >> > >> You''re getting this error when building from > the > >> tarball or you''re > >> pulling fontconfig from freedesktop git? This is > an > >> autoconf macro > >> that has failed to expand. If it''s in the > tarball like > >> that, then > >> there''s a problem. > > > > It is from fontconfig tarball. not sure why it failed > to expand, > > is there a way I can manually expand to see if I can > fix the problem? > > I just looked at the 2.6.0 tarball, and it looks fine. Are > you running > autoconf or autoreconf after unpacking? Otherwise, run > "autoreconf > -iv" and make sure that aclocal can find the file > pkg.m4. I don''t know > how this works on mac, but on linux it would be in > /usr/share/aclocal.tried. sudo autoreconf -iv --force sudo configure it has the same error message. I assume that PKG_PROG_PKG_CONFIG should exist somewhere to run. if pkg-config-0.23.tar.gz is installed, where PKG_PROG_PKG_CONFIG is expected to be? thanks. Peter
On Wed, Dec 31, 2008 at 12:54 PM, Peter <pcpc168 at sbcglobal.net> wrote:> > > > --- On Tue, 12/30/08, Dan Nicholson <dbn.lists at gmail.com> wrote: > >> From: Dan Nicholson <dbn.lists at gmail.com> >> Subject: Re: [Fontconfig] PKG_PROG_PKG_CONFIG error >> To: pcpc168 at sbcglobal.net >> Cc: "Alan Coopersmith" <Alan.Coopersmith at sun.com>, fontconfig at lists.freedesktop.org >> Date: Tuesday, December 30, 2008, 1:42 PM >> On Tue, Dec 30, 2008 at 3:02 PM, Peter >> <pcpc168 at sbcglobal.net> wrote: >> > >> >> >> Peter wrote: >> >> >> > Hello, >> >> >> > I donwloaded the latest fontconfig >> 2.6 to >> >> compile >> >> >> under Mac OS X 10.5, >> >> >> > it failed with the error: >> >> >> > >> >> >> > configure: line 22438: >> >> >> > PKG_PROG_PKG_CONFIG: command not >> found >> >> >> > >> >> >> > Where should I download >> PKG_PROG_PKG_CONFIG? >> >> >> >> >> >> http://pkg-config.freedesktop.org/ >> >> > >> >> > Alan, >> >> > Thanks. >> >> > I have pkg-config-0.23.tar.gz installed >> already. But I >> >> still got the same >> >> > error message under Mac OS X 10.5. >> >> >> >> You''re getting this error when building from >> the >> >> tarball or you''re >> >> pulling fontconfig from freedesktop git? This is >> an >> >> autoconf macro >> >> that has failed to expand. If it''s in the >> tarball like >> >> that, then >> >> there''s a problem. >> > >> > It is from fontconfig tarball. not sure why it failed >> to expand, >> > is there a way I can manually expand to see if I can >> fix the problem? >> >> I just looked at the 2.6.0 tarball, and it looks fine. Are >> you running >> autoconf or autoreconf after unpacking? Otherwise, run >> "autoreconf >> -iv" and make sure that aclocal can find the file >> pkg.m4. I don''t know >> how this works on mac, but on linux it would be in >> /usr/share/aclocal. > > tried. > sudo autoreconf -iv --force > sudo configure > > it has the same error message. I assume that PKG_PROG_PKG_CONFIG should exist somewhere to run. if pkg-config-0.23.tar.gz is installed, > where PKG_PROG_PKG_CONFIG is expected to be?First, I just looked at the tarball, and if you just run configure right away it should be fine. Are you running any commands before you run ./configure? Could you show the output of the commands? Second, if you really need to rebuild the autotools, then the pkg-config autoconf macros need to be available. If you have the output from autoreconf, it might help. You also don''t need to run all the commands as root. -- Dan
> First, I just looked at the tarball, and if you just run > configure > right away it should be fine. Are you running any commands > before you > run ./configure? Could you show the output of the commands?I didn''t run any command before ./configure. I just rebooted the computer and run ./configure. it doesn''t work.> > Second, if you really need to rebuild the autotools, then > the > pkg-config autoconf macros need to be available. If you > have the > output from autoreconf, it might help. > > You also don''t need to run all the commands as root.$ autoreconf -iv --force autoreconf: Entering directory `.'' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.in: tracing autoreconf: running: glibtoolize --copy --force autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory `.'' $ ./configure <....> /Users/test/tmp/fontconfig-2.6.0/configure: line 22438: PKG_PROG_PKG_CONFIG: command not found /Users/test/tmp/fontconfig-2.6.0/configure: line 22441: syntax error near unexpected token `LIBXML2,'' /Users/test/tmp/fontconfig-2.6.0/configure: line 22441: ` PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6)'' Peter