Skip Menu |

This queue is for tickets about the Cairo CPAN distribution.

Report information
The Basics
Id: 83137
Status: resolved
Priority: 0/
Queue: Cairo

People
Owner: Nobody in particular
Requestors: JACKMANEY [...] cpan.org
Cc: jackmaney [...] gmail.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: jackmaney [...] gmail.com
Subject: In OSX (Mountain Lion), cannot find Cairo nor xcb-shm
My apologies if I'm missing something simple, but after a significant amount of Googling, I'm still unable to install Cairo via CPAN on OSX Mountain Lion. When executing Makefile.PM, I get the following: Package xcb-shm was not found in the pkg-config search path. Perhaps you should add the directory containing `xcb-shm.pc' to the PKG_CONFIG_PATH environment variable Package 'xcb-shm', required by 'cairo', not found at Makefile.PL line 99. *** can not find package cairo >= 1.0.0 *** check that it is properly installed and available in PKG_CONFIG_PATH at Makefile.PL line 99. However, the correct directories are set in PKG_CONFIG_PATH: $echo $PKG_CONFIG_PATH /usr/X11/lib/:/usr/local/lib/pkgconfig/: And I've confirmed that xcb-shm is in the former and Cairo is in the latter. Is there something obvious that I'm missing? Thank you for your time, Jack Maney jackmaney@gmail.com
Subject: Re: [rt.cpan.org #83137] In OSX (Mountain Lion), cannot find Cairo nor xcb-shm
Date: Tue, 05 Feb 2013 18:30:51 +0100
To: bug-Cairo [...] rt.cpan.org
From: Torsten Schönfeld <kaffeetisch [...] gmx.de>
Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: Show quoted text
> When executing Makefile.PM, I get the following: > > Package xcb-shm was not found in the pkg-config search path. > Perhaps you should add the directory containing `xcb-shm.pc' > to the PKG_CONFIG_PATH environment variable > Package 'xcb-shm', required by 'cairo', not found > at Makefile.PL line 99. > *** can not find package cairo >= 1.0.0 > *** check that it is properly installed and available in PKG_CONFIG_PATH > at Makefile.PL line 99. > > However, the correct directories are set in PKG_CONFIG_PATH: > > $echo $PKG_CONFIG_PATH > /usr/X11/lib/:/usr/local/lib/pkgconfig/: > > And I've confirmed that xcb-shm is in the former and Cairo is in the > latter.
That should work, yes. I assume that pkg-config --modversion cairo fails similarly to the Makefile.PL. Then try running pkg-config --debug --modversion cairo and see if that provides any clues.
On Tue Feb 05 12:31:05 2013, TSCH wrote: Show quoted text
> Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: >
> > When executing Makefile.PM, I get the following: > > > > Package xcb-shm was not found in the pkg-config search path. > > Perhaps you should add the directory containing `xcb-shm.pc' > > to the PKG_CONFIG_PATH environment variable > > Package 'xcb-shm', required by 'cairo', not found > > at Makefile.PL line 99. > > *** can not find package cairo >= 1.0.0 > > *** check that it is properly installed and available in PKG_CONFIG_PATH > > at Makefile.PL line 99. > > > > However, the correct directories are set in PKG_CONFIG_PATH: > > > > $echo $PKG_CONFIG_PATH > > /usr/X11/lib/:/usr/local/lib/pkgconfig/: > > > > And I've confirmed that xcb-shm is in the former and Cairo is in the > > latter.
> > That should work, yes. I assume that > > pkg-config --modversion cairo > > fails similarly to the Makefile.PL. Then try running > > pkg-config --debug --modversion cairo > > and see if that provides any clues.
Surprisingly, it doesn't fail: $ pkg-config --modversion cairo 1.12.10 I installed Cairo via Homebrew (http://mxcl.github.com/homebrew/), if that makes a difference (although I'm not sure how it should).
On Tue Feb 05 12:45:20 2013, JACKMANEY wrote: Show quoted text
> On Tue Feb 05 12:31:05 2013, TSCH wrote:
> > Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: > >
> > > When executing Makefile.PM, I get the following: > > > > > > Package xcb-shm was not found in the pkg-config search path. > > > Perhaps you should add the directory containing `xcb-shm.pc' > > > to the PKG_CONFIG_PATH environment variable > > > Package 'xcb-shm', required by 'cairo', not found > > > at Makefile.PL line 99. > > > *** can not find package cairo >= 1.0.0 > > > *** check that it is properly installed and available in
> PKG_CONFIG_PATH
> > > at Makefile.PL line 99. > > > > > > However, the correct directories are set in PKG_CONFIG_PATH: > > > > > > $echo $PKG_CONFIG_PATH > > > /usr/X11/lib/:/usr/local/lib/pkgconfig/: > > > > > > And I've confirmed that xcb-shm is in the former and Cairo is in
> the
> > > latter.
> > > > That should work, yes. I assume that > > > > pkg-config --modversion cairo > > > > fails similarly to the Makefile.PL. Then try running > > > > pkg-config --debug --modversion cairo > > > > and see if that provides any clues.
> > Surprisingly, it doesn't fail: > > $ pkg-config --modversion cairo > 1.12.10 > > I installed Cairo via Homebrew (http://mxcl.github.com/homebrew/), if > that makes a > difference (although I'm not sure how it should).
Ah, but this does fail on xcb-shm: $ pkg-config --modversion xcb-shmPackage xcb-shm was not found in the pkg-config search path. Perhaps you should add the directory containing `xcb-shm.pc' to the PKG_CONFIG_PATH environment variable No package 'xcb-shm' found I've attached the output of pkg-config --debug --modversion xcb-shm.
Subject: xcb-shm_not_found.log
Download xcb-shm_not_found.log
application/octet-stream 23.6k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #83137] In OSX (Mountain Lion), cannot find Cairo nor xcb-shm
Date: Tue, 05 Feb 2013 19:14:38 +0100
To: bug-Cairo [...] rt.cpan.org
From: Torsten Schönfeld <kaffeetisch [...] gmx.de>
Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: Show quoted text
> $ pkg-config --modversion xcb-shmPackage xcb-shm was not found in the pkg-config > search path. > Perhaps you should add the directory containing `xcb-shm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'xcb-shm' found
So, are you sure that xcb-shm.pc is in /usr/X11/lib, not in something like /usr/X11/lib/pkgconfig?
On Tue Feb 05 13:14:53 2013, TSCH wrote: Show quoted text
> Jack Maney via RT <bug-Cairo@rt.cpan.org> writes:
> > $ pkg-config --modversion xcb-shmPackage xcb-shm was not found in
> the pkg-config
> > search path. > > Perhaps you should add the directory containing `xcb-shm.pc' > > to the PKG_CONFIG_PATH environment variable > > No package 'xcb-shm' found
> > So, are you sure that xcb-shm.pc is in /usr/X11/lib, not in something > like /usr/X11/lib/pkgconfig?
There are (currently) no subdirectories of /usr/X11/lib, and the file that I thought corresponded to xcb-shm is libxcb-shm.0.dylib. I take it that this isn't the correct library?
Subject: Re: [rt.cpan.org #83137] In OSX (Mountain Lion), cannot find Cairo nor xcb-shm
Date: Tue, 05 Feb 2013 21:07:00 +0100
To: bug-Cairo [...] rt.cpan.org
From: Torsten Schönfeld <kaffeetisch [...] gmx.de>
Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: Show quoted text
>> So, are you sure that xcb-shm.pc is in /usr/X11/lib, not in something >> like /usr/X11/lib/pkgconfig?
> > There are (currently) no subdirectories of /usr/X11/lib, and the file that I thought > corresponded to xcb-shm is libxcb-shm.0.dylib. I take it that this isn't the correct > library?
It is probably the correct library, but the pkg-config utility is not looking for library files, but for *.pc files. They contain information on how to compile and link against the library. For example, the *.pc file for cairo appears to be at /usr/local/lib/pkgconfig/cairo.pc on your system. You need to find a way to get xcb-shm.pc installed on your system. Often, the *.pc files are in a "dev" or "devel" package associated to the package that contains the actual library.
On Tue Feb 05 15:07:16 2013, TSCH wrote: Show quoted text
> Jack Maney via RT <bug-Cairo@rt.cpan.org> writes: >
> >> So, are you sure that xcb-shm.pc is in /usr/X11/lib, not in
> something
> >> like /usr/X11/lib/pkgconfig?
> > > > There are (currently) no subdirectories of /usr/X11/lib, and the
> file that I thought
> > corresponded to xcb-shm is libxcb-shm.0.dylib. I take it that this
> isn't the correct
> > library?
> > It is probably the correct library, but the pkg-config utility is not > looking for library files, but for *.pc files. They contain > information > on how to compile and link against the library. For example, the *.pc > file for cairo appears to be at /usr/local/lib/pkgconfig/cairo.pc on > your system. > > You need to find a way to get xcb-shm.pc installed on your system. > Often, the *.pc files are in a "dev" or "devel" package associated to > the package that contains the actual library.
I went through the process of installing libxcb from source (which involved installing some prerequisites from source), which ended up in /usr/X11/lib/pkgconfig. After updating PKG_CONFIG_PATH, the installation worked. Thank you for your patience.
You're welcome.