Unable to Install py-gtk2

Ryan Schmidt ryandesign at macports.org
Wed Apr 30 01:07:26 PDT 2008


On Apr 29, 2008, at 6:34 PM, Morgan Sutherland wrote:

> That didn't work; same error.

Ok, then I'm not sure what to do next, sorry. I don't know much about  
the gtk ports. All I know is gtk-doc installed successfully on my  
system just a few weeks ago.

> I'm pretty sure that it's more than gtk-doc that's not compiling:
>
> "Error: The following dependencies failed to build: gtk2 gtk-doc jpeg
> pango Xft2 xorg-xproto xorg-util-macros shared-mime-info tiff
> libglade2 py-cairo py-numpy fftw-3 g95 py-gobject"

Of those, MacPorts has thus far only attempted to compile gtk-doc,  
and when that failed, it aborted. The other ports also still need to  
be compiled, but no attempt has been made to do so.

> I think the problem is up here, no?:
>
> "Error: Target org.macports.configure returned: configure failure:
> shell command " cd
> "/opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome 
> _gtk-doc/work/gtk-doc-1.10"
> && ./configure --prefix=/opt/local
> --with-xml-catalog=/opt/local/etc/xml/catalog " returned error 1"

That's the generic error message printed by MacPorts when anything  
goes wrong with a port install. It does not help us figure out what  
went wrong. The specific error message which should tell us what's  
wrong is below that. The fatal error was:

checking for DocBook XML DTD V4.1.2 in XML catalog... not found
configure: error: could not find DocBook XML DTD V4.1.2 in XML catalog

I don't know how to fix this. Try Googling for that error message.


> On Tue, Apr 29, 2008 at 5:23 PM, Ryan Schmidt wrote:
>
>>  On Apr 29, 2008, at 3:48 PM, Morgan Sutherland wrote:
>>
>>> I'm trying to install py-gtk2 in 10.5.2. I have the most recent
>>> version of Python installed (and working).
>>>
>>> I read somewhere about problems with .pydistutils.cfg, but the  
>>> errors
>>> don't go away when I rename it.
>>>
>>> This is the error I get:
>>>
>>> /opt/local/bin: sudo port install py-gtk2
>>> --->  Configuring gtk-doc
>>>
>>
>>  So gtk-doc is failing to build.
>>
>>
>>
>>
>>> Error: Target org.macports.configure returned: configure failure:
>>> shell command " cd
>>>
>> "/opt/local/var/macports/build/ 
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_gnom 
>> e_gtk-doc/work/gtk-doc-1.10"
>>> && ./configure --prefix=/opt/local
>>> --with-xml-catalog=/opt/local/etc/xml/catalog " returned error 1
>>> Command output: checking whether the /usr/bin/g++-4.0 linker
>>> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
>>> libraries... yes
>>> checking for /usr/bin/g++-4.0 option to produce PIC... -fno-common
>>> checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes
>>> checking if /usr/bin/g++-4.0 static flag -static works... no
>>> checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
>>> checking whether the /usr/bin/g++-4.0 linker
>>> (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
>>> libraries... yes
>>> checking dynamic linker characteristics... darwin9.2.2 dyld
>>> checking how to hardcode library paths into programs... immediate
>>> appending configuration tag "F77" to libtool
>>> checking for pkg-config... /opt/local/bin/pkg-config
>>> checking pkg-config is at least version 0.19... yes
>>> checking for perl... /opt/local/bin/perl
>>> checking if Perl version >= 5.6.0... yes
>>> checking whether /opt/local/bin/python2.5 version >= 2.3... yes
>>> checking for /opt/local/bin/python2.5 version... Could not find
>>> platform dependent libraries <exec_prefix>
>>> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>>> 2.5
>>> checking for /opt/local/bin/python2.5 platform... Could not find
>>> platform dependent libraries <exec_prefix>
>>> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
>>> darwin
>>> checking for /opt/local/bin/python2.5 script directory...
>>> ${prefix}/lib/python2.5/site-packages
>>> checking for /opt/local/bin/python2.5 extension module directory...
>>> ${exec_prefix}/lib/python2.5/site-packages
>>> checking for openjade... no
>>> checking for jade... no
>>> configure: WARNING: Could not find openjade or jade, so SGML is not
>> supported
>>> checking for xsltproc... /opt/local/bin/xsltproc
>>> checking for XML catalog (/opt/local/etc/xml/catalog)... found
>>> checking for xmlcatalog... /opt/local/bin/xmlcatalog
>>> checking for DocBook XML DTD V4.1.2 in XML catalog... not found
>>> configure: error: could not find DocBook XML DTD V4.1.2 in XML  
>>> catalog
>>>
>>> Error: The following dependencies failed to build: gtk2 gtk-doc jpeg
>>> pango Xft2 xorg-xproto xorg-util-macros shared-mime-info tiff
>>> libglade2 py-cairo py-numpy fftw-3 g95 py-gobject
>>> Error: Status 1 encountered during processing.
>>
>> gtk-doc depends on docbook-xml-4.1.2. Is docbook-xml-4.1.2  
>> installed and
>> active? If so, try rebuilding it:
>>
>>  sudo port -ncuf upgrade docbook-xml-4.1.2
>>
>>  Then try installing gtk-doc again. Do you get the same error?


More information about the macports-users mailing list