|
|
| Author |
Message |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Thu Jan 19, 2006 8:50 pm Post subject: error: XML::Parser perl module is required for intltool |
|
|
|
Problem: You've been trying all day to compile some piece of GNOME software from scratch. You try:
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.
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
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.
|
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!  _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
some_cs_student Warrant Officer

Joined: 25 Feb 2004 Posts: 69
|
Posted: Sat Jan 21, 2006 1:52 am Post subject: |
|
|
|
Would have being nice if the programmer didn't re-direct perl's error output to /dev/null :
| 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  |
|
| Back to top |
|
 |
darkhawk665 Private

Joined: 12 Apr 2006 Posts: 1
|
Posted: Wed Apr 12, 2006 2:52 pm Post subject: XML-Parser |
|
|
|
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 |
|
 |
paufrottawa Private

Joined: 09 Apr 2009 Posts: 1
|
Posted: Thu Apr 09, 2009 11:14 pm Post subject: |
|
|
|
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 |
|
 |
|
|
 |
|
|