Scheduled maintenance — back soon.

~/blog/xmlparser-perl-module-required-intltool

XML::Parser perl module is required for intltool

17 Feb 2014

cat:linux

tags:#install#module#perl

If it happens to get the following error message while you are compiling some program from source code:

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

then you should know the real problem lays in the fact that some Perl module is missing. It could be right the XML::Parser module in spite of being installed. How to debug this problem:

  • run the command bellow and read carefully the error message; it could show you the module that is not installed

perl -e "require XML::Parser"
  • once you have found which module is missing or not configured/installed you can bring up the CPAN tool:

perl -e shell -MCPAN
  • ..then you can install it:

install XML::Parser

where you can specify the command/module that needs to be configured/installed. That should fix your problem. Please let me know if you have trouble with this or if you have found other solution. I would happily update/upgrade my post with your suggestion too.

Comments

12 comments

  • IPN

    Please tell that after installing perl module how to go back to previous state in terminal.

      • Rdrpenguin

        I think he means how to exit the cpan terminal. Type "exit" to go back to the standard terminal.

  • Konstantinos Giannoukos

    Thank you very much! I build my own LFS system and I stuck to the installation package intltool although Ι installed package xml-parser. I ran these commands above and the problem was solved.

    • Eugen Mihailescu

      I'm glad it helped. That's the *nix spirit: learn and spread the word such that the entire community benefit.

  • lola

    I got this error when trying to install a tarball through ./configure. I ran the commands you posted, but I still get the same error. Any idea as to what else I could do?

    • Eugen Mihailescu

      If you just copy-paste the Perl module(s) I mentioned then perhaps you didn't fixed the module that is missing on your system, instead you fixed a module (eg. XML::Parser) that was missing on my system. Find out the missing module(s) in your error message and try install/fix that.

  • Hani

    When I used the command "perl -e shell -MCPAN" and got to the stage of looking for CPAN mirrors near, I got the message "can't call method "http" on unblessed reference at 'local folder/FirstTime.pm line 1868'"

  • Hani

    Oh, I solved the problem by choosing 'no' to automatically allow CPAN to search for CPAN mirrors near me. I had to choose the URL from the list

  • ccpizz

    It can be as simple as: `cpan XML::Parser`.

  • Sumit kumar suman

    Hi Eugen, I am getting this message after running very 1st command . root [ /sources ]# perl -e "require XML::Parser" Can't load module XML::Parser::Expat, dynamic loading not available in this perl. Can you please suggest some solution as i have installed and reinstall perl 5 more than 3 times again i am getting same error. So,please help me here .any suggestion.

    • Eugen Mihailescu

      The error you got has nothing to do with the XML::Parser issue. The problem is "dynamic loading not available in this perl". GIYF.

Leave a comment

Name and email required · moderated before publish · plain text only