You are not logged in.

#1 2020-08-23 14:07:56

Spheerys
Member
Registered: 2012-05-01
Posts: 80

[Solved] error: XML::Parser perl module is required for intltool

Hi,

I have an annoying error and I don't find the way to solved it.
During several package installation, I get this error :

checking for perl >= 5.8.1... 5.30.3
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
==> ERROR : An error was occurring during the build().
    Abord…

As root, I have ran :

cpan XML::XPath

I get this result : https://pb.spheerys.fr/?1cee6bc7f8161cd … /IdipfXNA=

After I did a sudo pacman -S perl-xml-parser to reinstall perl-xml-parser but if the package is well installed, I get this warning (maybe is significant or not) :

WARNING: '/usr/lib/perl5/5.32' contains data from at least 41 packages which will NOT be used by the installed perl interpreter.
 -> Run the following command to get a list of affected packages: pacman -Qqo '/usr/lib/perl5/5.32'

Howevern I still can't install the initial package because the configure: error: XML::Parser perl module is required for intltool is still there..

What did I miss ?

Last edited by Spheerys (2020-08-23 20:26:16)

Offline

#2 2020-08-23 16:49:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved] error: XML::Parser perl module is required for intltool

It looks like something may be wrong with your perl install.  What's the output of each of the following:

type perl
pacman -Qo /bin/perl
type intltoolize
pacman -Qo /bin/intltoolize

Last edited by Trilby (2020-08-23 16:52:19)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-08-23 19:38:19

Spheerys
Member
Registered: 2012-05-01
Posts: 80

Re: [Solved] error: XML::Parser perl module is required for intltool

type perl :

perl is /opt/lampp/bin//perl

whereis perl :

perl: /usr/bin/perl /opt/lampp/bin/perl /usr/share/man/man1/perl.1perl.gz

pacman -Qo  /usr/bin/perl :

/usr/bin/perl appartient à perl 5.32.0-1

type intltoolize :

intltoolize is /usr/bin/intltoolize

pacman -Qo /usr/bin/intltoolize :

/usr/bin/intltoolize appartient à intltool 0.51.0-6

Offline

#4 2020-08-23 20:08:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved] error: XML::Parser perl module is required for intltool

The first one highlights the problem.  Do you / why do you need that perl in /opt/?  If you need to keep it, you'll likely need to update it to a current version (or alternatively remove it from or lower it's priority in your PATH).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-08-23 20:25:48

Spheerys
Member
Registered: 2012-05-01
Posts: 80

Re: [Solved] error: XML::Parser perl module is required for intltool

lampp bring it !
I made this :

sudo ln -s /usr/bin/perl /opt/lampp/bin/perl

And it solved the problem !

Thanks !

Offline

#6 2020-08-23 20:54:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [Solved] error: XML::Parser perl module is required for intltool

That seems like a dangerous workaround.  Again, do you need that content in /opt?  Why?  If you really do, it should be lower, not higher priority in PATH compared to /usr/bin.  Having /opt/lampp/bin as lower priority than /usr/bin would have the same end result as your symlink but with none of the side effects of potentially breaking what you have under /opt/lampp (or being overwritten the next time you update/reinstall whatever put that stuff there).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2020-08-28 18:28:21

Spheerys
Member
Registered: 2012-05-01
Posts: 80

Re: [Solved] error: XML::Parser perl module is required for intltool

You're right.
I changed my PATH on my .zshrc smile

Last edited by Spheerys (2020-08-28 18:35:24)

Offline

Board footer

Powered by FluxBB