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.
Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.
Eugen Mihailescu
Latest posts by Eugen Mihailescu (see all)
- Dual monitor setup in Xfce - January 9, 2019
- Gentoo AMD Ryzen stabilizator - April 29, 2018
- Symfony Compile Error Failed opening required Proxies - January 22, 2018
Please tell that after installing perl module how to go back to previous state in terminal.
What do you mean?
I think he means how to exit the cpan terminal. Type "exit" to go back to the standard terminal.
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.
I'm glad it helped. That's the *nix spirit: learn and spread the word such that the entire community benefit.
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?
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.
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'"
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
It can be as simple as: `cpan XML::Parser`.
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.
The error you got has nothing to do with the XML::Parser issue. The problem is "dynamic loading not available in this perl". GIYF.