[MacPorts] #33168: intltool: configure: error: XML::Parser perl module is required (was: configure: error: XML::Parser perl module is required for intltool)

MacPorts noreply at macports.org
Tue Feb 7 07:06:35 PST 2012


#33168: intltool: configure: error: XML::Parser perl module is required
--------------------------------+-------------------------------------------
 Reporter:  pjue2009@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  2.0.3                                
 Keywords:                      |        Port:  intltool                             
--------------------------------+-------------------------------------------
Changes (by ryandesign@…):

  * keywords:  intltool rarian expat perl5.12 =>


Old description:

> intltool fails to configure properly even though p5-xml-parser is
> installed.
>
> {{{checking for perl >= 5.8.1... 5.12.3
> checking for XML::Parser... configure: error: XML::Parser perl module is
> required for intltool
> shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/work/intltool-0.40.6"
> && ./configure --prefix=/opt/local " returned error 1
> Error: Target org.macports.configure returned: configure failure: shell
> command failed (see log for details)
> DEBUG: Backtrace: configure failure: shell command failed (see log for
> details)
>     while executing
> "$procedure $targetname"
> Warning: the following items did not execute (for intltool):
> org.macports.activate org.macports.configure org.macports.build
> org.macports.destroot org.macports.install
> Log for intltool is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <http://guide.macports.org/#project.tickets>
> }}}
>
> When I run "perl5.12 -e "require XML::Parser", I get:
>
> {{{Can't load '/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
> 2level/auto/XML/Parser/Expat/Expat.bundle' for module XML::Parser::Expat:
> dlopen(/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
> 2level/auto/XML/Parser/Expat/Expat.bundle, 1): no suitable image found.
> Did find:
>         /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
> 2level/auto/XML/Parser/Expat/Expat.bundle: mach-o, but wrong architecture
> at /opt/local/lib/perl5/5.12.3/darwin-multi-2level/DynaLoader.pm line
> 204.
>  at /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
> 2level/XML/Parser.pm line 18
> Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.12.3
> /darwin-multi-2level/XML/Parser.pm line 18.
> BEGIN failed--compilation aborted at
> /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm
> line 22.
> Compilation failed in require at -e line 1.
> }}}
>
> I have tried reinstalling expat, but keep getting the same message above.
> My config file is set to i386 x86_64 for universal build architecture,
> which I changed after realizing it was set to i386 ppc. I am running OSX
> 10.5.8, 64-bit Intel, Xcode 3.1.2.

New description:

 intltool fails to configure properly even though p5-xml-parser is
 installed.

 {{{
 checking for perl >= 5.8.1... 5.12.3
 checking for XML::Parser... configure: error: XML::Parser perl module is
 required for intltool
 shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/work/intltool-0.40.6"
 && ./configure --prefix=/opt/local " returned error 1
 Error: Target org.macports.configure returned: configure failure: shell
 command failed (see log for details)
 DEBUG: Backtrace: configure failure: shell command failed (see log for
 details)
     while executing
 "$procedure $targetname"
 Warning: the following items did not execute (for intltool):
 org.macports.activate org.macports.configure org.macports.build
 org.macports.destroot org.macports.install
 Log for intltool is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/main.log
 Error: Status 1 encountered during processing.
 To report a bug, see <http://guide.macports.org/#project.tickets>
 }}}

 When I run "perl5.12 -e "require XML::Parser", I get:

 {{{
 Can't load '/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
 2level/auto/XML/Parser/Expat/Expat.bundle' for module XML::Parser::Expat:
 dlopen(/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
 2level/auto/XML/Parser/Expat/Expat.bundle, 1): no suitable image found.
 Did find:
         /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
 2level/auto/XML/Parser/Expat/Expat.bundle: mach-o, but wrong architecture
 at /opt/local/lib/perl5/5.12.3/darwin-multi-2level/DynaLoader.pm line 204.
  at /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-
 2level/XML/Parser.pm line 18
 Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.12.3
 /darwin-multi-2level/XML/Parser.pm line 18.
 BEGIN failed--compilation aborted at
 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm
 line 22.
 Compilation failed in require at -e line 1.
 }}}

 I have tried reinstalling expat, but keep getting the same message above.
 My config file is set to i386 x86_64 for universal build architecture,
 which I changed after realizing it was set to i386 ppc. I am running OSX
 10.5.8, 64-bit Intel, Xcode 3.1.2.

--

Comment:

 "i386 ppc" is the usual value of universal_archs on Leopard. You can
 change it to "i386 x86_64" if you want but note that this is not well-
 tested on Leopard so you might run into problems most of us have not seen
 before. After you changed universal_archs to "i386 x86_64" did you
 uninstall and reinstall all ports that you had already installed with the
 universal variant? If not, do so now, then clean intltool, then try again.

-- 
Ticket URL: <https://trac.macports.org/ticket/33168#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list