Opened 12 years ago

Closed 11 years ago

#37722 closed defect (fixed)

gconf: configure: error: XML::Parser perl module is required for intltool

Reported by: s.mahajan1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager), ryandesign (Ryan Carsten Schmidt)
Port: gconf

Description (last modified by skymoo (Adam Mercer))

I am trying to install fftw on Mac OSX 10.7.5 with Xcode 4.3.2 but halfway I get the following error and am not able to debug it from the log file. Please help. Thanks!

--->  Computing dependencies for gconf
--->  Configuring gconf
Error: org.macports.configure for port gconf returned: configure failure: command execution failed
Please see the log file for port gconf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gconf/gconf/main.log
Error: Unable to upgrade port: 1
Error rebuilding gconf
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 370)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 94)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 95)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4784)

Attachments (1)

main.log (12.7 KB) - added by s.mahajan1@… 12 years ago.
log file for gconf

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by skymoo (Adam Mercer)

Cc: s.mahajan1@… removed
Description: modified (diff)
Port: gconf added
Summary: Error installing fftwError installing gconf

gconf is the port that failed to install, not fftw. Can you attach the mentioned log file, i.e.

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gconf/gconf/main.log

Changed 12 years ago by s.mahajan1@…

Attachment: main.log added

log file for gconf

comment:2 Changed 12 years ago by s.mahajan1@…

File attached.

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Hm, that's strange, p5.12-xml-parser should have been pulled in when intltool was installed... Maybe try installing p5-xml-parser with the +universal variant? Or maybe try running cpan -i XML::Parser?

comment:4 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 in reply to:  3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Error installing gconfgconf: configure: error: XML::Parser perl module is required for intltool

The log says "configure: error: XML::Parser perl module is required for intltool". There are tons of other tickets mentioning this error message; please search and see if one of them might contain the solution to this issue.

Replying to egall@…:

Hm, that's strange, p5.12-xml-parser should have been pulled in when intltool was installed...

Yes, there should be no way for that not to have happened.

Maybe try installing p5-xml-parser with the +universal variant?

p5-xml-parser does not have a universal variant and does not install anything. Perhaps you meant p5.12-xml-parser, but I see no indication at this time that this relates to universal issues. Reinstalling p5.12-xml-parser might be a good thing to try however.

Or maybe try running cpan -i XML::Parser?

Please do not use cpan to manually install software into the prefix managed by MacPorts; that will only confuse things.

comment:6 Changed 12 years ago by cooljeanius (Eric Gallager)

p5-xml-parser does not have a universal variant and does not install anything.

Yes it does, it installs p5.12-xml-parser as a dependency which does in fact have a universal variant which will get propagated to it; I normally just do p5- instead of p5.12- for perl ports because it takes fewer letters to type and does essentially the same thing. Actually, another suggestion that s.mahajan1 could try: Try installing "p5*xml-parser +universal" instead; switching the first hyphen to an asterisk (for a wildcard) should grab the XML::Parser for each perl version available on MacPorts.

I see no indication at this time that this relates to universal issues.

You never know, it can't hurt to try the universal one at least.

Please do not use cpan to manually install software into the prefix managed by MacPorts; that will only confuse things.

I was implying the system cpan, not the MacPorts one.

Last edited 12 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:7 Changed 11 years ago by raimue (Rainer Müller)

As Ryan said, this is a common problem with intltool, see #30937 for details.

Add these lines to the Portfile:

# intltool needs to be run with the correct version of perl 
configure.env-append INTLTOOL_PERL=${prefix}/bin/perl5.12

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.