Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
error: XML::Parser perl module is required for intltool



 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> SGML, XML and DocBook Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Thu Jan 19, 2006 8:50 pm    Post subject: error: XML::Parser perl module is required for intltool
Reply with quote

Question Problem: You've been trying all day to compile some piece of GNOME software from scratch. You try:

Code:

./configure


and it blows off with an error:

Code:

checking for perl... /usr/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool


You check and doublecheck that you indeed have the Perl XML::Parser module. But the configure script keeps on complaining that you don't have it. Your day is destroyed.

Idea Reason: The configure script is clever enough to tell you that the "XML::Parser perl module is required for intltool" (which, taken as an assertion, is indeed always true), but braindamaged enough NOT to tell you the REAL error. To find the real error, you have to dig yourself - and dig deeply:

Search for the error message "XML::Parser perl module is required..." inside the directory of the source code. You can use the grepdir utility for this. You will find out that the error comes from this piece of code in the configure script:

Code:

if test "x" != "xno-xml"; then
   echo "$as_me:$LINENO: checking for XML::Parser" >&5
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
       echo "$as_me:$LINENO: result: ok" >&5


So what's this "intltool" after all? Looking at the code, you only find this:

Code:

INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL


which does not say anything, except to the very initiated ones...

So let's insert an echo to find out - change the above lines to:

Code:

if test "x" != "xno-xml"; then
   echo "$as_me:$LINENO: checking for XML::Parser" >&5
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
   echo "INTLTOOL_PERL=$INTLTOOL_PERL"
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
       echo "$as_me:$LINENO: result: ok" >&5


See the line

Code:

echo "INTLTOOL_PERL=$INTLTOOL_PERL"


there? If you run

Code:

./configure


again, it will tell you that

Code:

INTLTOOL_PERL=/usr/bin/perl


Thus

Code:

$INTLTOOL_PERL -e "require XML::Parser


in those configure lines means nothing else than

Code:

/usr/bin/perl -e "require XML::Parser"


So it is this simple program that fails:

Code:

/usr/bin/perl -e "require XML::Parser"


If you run it on the command line, it will also tell you why - in my occasion, it turned out that I was missing the expat package:

Code:

/usr/bin/perl -e "require XML::Parser"
Can't load '/usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: libexpat.so.0: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.1/i586-linux-thread-multi/DynaLoader.pm line 229.
 at /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/XML/Parser.pm line 15
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/XML/Parser.pm line 15.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/XML/Parser.pm line 19.
Compilation failed in require at -e line 1.


Arrow Solution: Run

Code:

/usr/bin/perl -e "require XML::Parser"


in your build system (which may or may not be the system you will install your package afterwards). It should break with an error. Read THAT error - forget configure's silly "XML::Parser perl module is required for intltool" assertion.

Read that error carefully, find out what is really missing (the expat package in the above example), install it - and be happy! Smile
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
some_cs_student
Warrant Officer
Warrant Officer


Joined: 25 Feb 2004
Posts: 69

PostPosted: Sat Jan 21, 2006 1:52 am    Post subject:
Reply with quote

Would have being nice if the programmer didn't re-direct perl's error output to /dev/null Sad:

Code:
  if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then


Well if he's sending the error output there you'll never see the real problem Sad
Back to top
View user's profile Send private message
darkhawk665
Private
Private


Joined: 12 Apr 2006
Posts: 1

PostPosted: Wed Apr 12, 2006 2:52 pm    Post subject: XML-Parser
Reply with quote

HI,

this is the page where I found all the modules that I was missing, this POST is the 2 years ago, but I put the page if someone need that:

http://search.cpan.org/~msergeant/XML-Parser-2.34/


Thanks for the info Chris.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
paufrottawa
Private
Private


Joined: 09 Apr 2009
Posts: 1

PostPosted: Thu Apr 09, 2009 11:14 pm    Post subject:
Reply with quote

Hello I found this site through a google search on the error code.
I tried to reinstall some parsing programs and textproc/p5-XML-Parser was the right on for me.

After that I could build gnome-desktop from source.

PS: my user name is paulfrottawa

I hope the admin can change that.
Back to top
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> SGML, XML and DocBook Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group