Error xml parser perl module is required for intltool

Joined: 03 Mar 2012Posts: 1600Location: US
View previous topic :: View next topic   Author Message BillWho
Veteran
Veteran

Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Jun 14, 2012 2:47 am    Post subject: [SOLVED] XML::Parser perl module is required for intltool Reply with quote

I’m stumped :(

I have several ebuilds failing due to this error: checking for XML::Parser… configure: error: XML::Parser perl module is required for intltool

Code:
[ebuild  NS    ] x11-libs/vte-0.32.1 [0.28.2-r203] USE=»introspection -debug -doc -glade» 0 kB

[ebuild  N     ] net-print/libgnomecups-0.2.3-r2  USE=»-debug» 0 kB

[ebuild  N     ] x11-terms/gnome-terminal-3.4.1.1  0 kB

[ebuild  N     ] gnome-base/libgnomeprint-2.18.8  USE=»cups -doc» 0 kB

[ebuild  N     ] gnome-base/libgnomeprintui-2.18.6  USE=»-doc» 0 kB

[ebuild     U  ] media-sound/pulseaudio-2.0-r1 [2.0] USE=»X alsa asyncns avahi caps dbus gdbm glib gnome* gtk%* ipv6 orc ssl tcpd udev webrtc-aec -bluetooth -doc -equalizer -jack -libsamplerate -lirc (-oss) -realtime (-system-wide) -test -xen%» 0 kB



In checking the configure file the error occurs at:

Code:
$as_echo_n «checking for XML::Parser… » >&6; }

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

       { $as_echo «$as_me:${as_lineno-$LINENO}: result: ok» >&5

$as_echo «ok» >&6; }

   else

       as_fn_error $? «XML::Parser perl module is required for intltool» «$LINENO» 5

   fi

fi



Issuing

Code:
 perl -e «require XML::Parser»

on the cl results with:

Code:
root@gentoo-ws490 vte-0.32.1 # perl -e «require XML::Parser»

Can’t locate XML/Parser.pm in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.16.0/x86_64-linux /usr/local/lib64/perl5/5.16.0 /usr/lib64/perl5/vendor_perl/5.16.0/x86_64-linux /usr/lib64/perl5/vendor_perl/5.16.0 /usr/lib64/perl5/5.16.0/x86_64-linux /usr/lib64/perl5/5.16.0 .) at -e line 1.



If I run the same command on another system that compiled puleaudio, nothing is returned.

Any clues would be appreciated :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)

Last edited by BillWho on Thu Jun 14, 2012 3:45 am; edited 1 time in total

Back to top jburns
Veteran
Veteran

Joined: 18 Jan 2007
Posts: 1183
Location: Massachusetts USA

Back to top BillWho
Veteran
Veteran

Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Jun 14, 2012 3:44 am    Post subject: Reply with quote

jburns,

Thanks for the reply :D and yes it is.

Code:
[IP-] [  ] dev-perl/XML-Parser-2.410.0



That’s another reason I was scratching the hair out of my head :cry:

I just found the problem though — somehow dev-lang/perl-5.16.0:0 was installed on the computer exhibiting the error. The one that was OK was at dev-lang/perl-5.12.4-r2 :?

Here’s the equery from both:

Code:
root@gentoo-gateway bill # equery l -p perl

 * Searching for perl …

[-P-] [M ] dev-lang/perl-5.8.8-r8:0

[-P-] [M ] dev-lang/perl-5.10.1:0

[-P-] [  ] dev-lang/perl-5.12.3-r1:0

[-P-] [  ] dev-lang/perl-5.12.4:0

[-P-] [  ] dev-lang/perl-5.12.4-r1:0

[IP-] [  ] dev-lang/perl-5.12.4-r2:0

[-P-] [M ] dev-lang/perl-5.14.1:0

[-P-] [M ] dev-lang/perl-5.14.1-r1:0

[-P-] [M ] dev-lang/perl-5.14.2:0

[-P-] [M ] dev-lang/perl-5.16.0:0


Code:
root@gentoo-ws490 vte-0.32.1 # equery l -p perl

 * Searching for perl …

[-P-] [M ] dev-lang/perl-5.8.8-r8:0

[-P-] [M ] dev-lang/perl-5.10.1:0

[-P-] [  ] dev-lang/perl-5.12.3-r1:0

[-P-] [  ] dev-lang/perl-5.12.4:0

[-P-] [  ] dev-lang/perl-5.12.4-r1:0

[-P-] [  ] dev-lang/perl-5.12.4-r2:0

[-P-] [M ] dev-lang/perl-5.14.1:0

[-P-] [M ] dev-lang/perl-5.14.1-r1:0

[-P-] [M ] dev-lang/perl-5.14.2:0

[IP-] [  ] dev-lang/perl-5.16.0:0



I unmerged dev-lang/perl-5.16.0, emerged 5.12.4-r2 then masked >dev-lang/perl-5.12.4-r2 and all compiled after that :D

Now, I’m scratching my head trying to figure out how perl jumped to 5.16 and why it’s masked on the other computer when both are the same architecture and using the same repos :?

Thanks again for your reply :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)

Back to top yngwin
Retired Dev
Retired Dev

Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

Back to top BillWho
Veteran
Veteran

Joined: 03 Mar 2012
Posts: 1600
Location: US

Back to top Trovalds
n00b
n00b

Joined: 16 Jun 2011
Posts: 13
Location: Cuiaba/MT — Brazil

PostPosted: Thu Dec 19, 2013 7:15 pm    Post subject: Reply with quote

Got the same error here on a fresh Gentoo install.

Then I ran «perl-cleaner —reallyall» after read yngwin’s tip and everything runs smooth again.

Thanks for help.

Back to top jenkler
Apprentice
Apprentice

Joined: 28 Apr 2003
Posts: 220
Location: Sweden — Stockholm

PostPosted: Fri Dec 20, 2013 3:06 pm    Post subject: Reply with quote

Trovalds wrote:
Got the same error here on a fresh Gentoo install.

Then I ran «perl-cleaner —reallyall» after read yngwin’s tip and everything runs smooth again.

Thanks for help.

Thanks, works like a charm :D
_________________
This is me: Jenkler IT AB, use google translate when viewing my page, please!

Back to top liutom
n00b
n00b

Joined: 30 Sep 2004
Posts: 51

Back to top Utsuho Reiuji
Apprentice
Apprentice

Joined: 03 Apr 2013
Posts: 179

Back to top housemouse139
n00b
n00b

Joined: 28 Dec 2013
Posts: 1

Back to top solamour
l33t
l33t

Joined: 21 Dec 2004
Posts: 683
Location: San Diego, CA

Back to top jdowner
n00b
n00b

Joined: 29 Jun 2013
Posts: 5

Back to top Anon-E-moose
Watchman
Watchman

Joined: 23 May 2008
Posts: 5864
Location: Dallas area

PostPosted: Mon Dec 30, 2013 2:28 pm    Post subject: Reply with quote

I think the devs should have either put out a news item with the release of the new version of perl

Or put a message into the ebuild Or both.

It’s been so long since I had to run perl-cleaner, that I forgot all about it and had to google to find out what to do.
_________________
PRIME x570-pro, 3700x, 5.17 zen kernel

gcc 11.2.0/12.2.0, profile 17.1 amd64-no-multilib, openrc, wayland


copy of my local repo

Back to top diablo465
Apprentice
Apprentice

Joined: 10 Sep 2013
Posts: 194

Back to top chief1983
n00b
n00b

Joined: 18 Jun 2004
Posts: 9
Location: New Melle

Back to top bandreabis
Advocate
Advocate

Joined: 18 Feb 2005
Posts: 2479
Location: イタリアのロディで

Back to top soth
Apprentice
Apprentice

Joined: 12 Sep 2003
Posts: 207

PostPosted: Wed Jan 15, 2014 5:02 pm    Post subject: Reply with quote

reallyall solved my problem too. Thanks!
_________________
— Never argue with an idiot. They just drag you down to your level and beat you with experience.

Join the adopt an unanswered post initiative today

Back to top AstroFloyd
n00b
n00b

Joined: 18 Oct 2011
Posts: 55

Back to top Pseudonimo
Guru
Guru

Joined: 10 Mar 2007
Posts: 393

PostPosted: Wed Jan 22, 2014 11:47 am    Post subject: Reply with quote

+1 Thanks!

(for the perl-cleaner hint, didn’t know this tool)
_________________
Please search *well* before posting, look for bugs (check all status), use google syntax and *please* read the man pages and think. All obvious steps, frequently ignored. Add [solved] when finished.

Back to top diablo465
Apprentice
Apprentice

Joined: 10 Sep 2013
Posts: 194

PostPosted: Fri Jan 31, 2014 5:24 am    Post subject: Reply with quote

Quote:
perl-cleaner —reallyall

Thanks , this again solves my problem (in another computer)

But can any shed light on what does this command actually do ?

Back to top hextasy
n00b
n00b

Joined: 06 Feb 2014
Posts: 1
Location: Upstate NY

Back to top paulj
Guru
Guru

Joined: 30 Sep 2004
Posts: 488
Location: Wales, UK

PostPosted: Thu Feb 06, 2014 7:44 pm    Post subject: Reply with quote

diablo465 wrote:
Quote:
perl-cleaner —reallyall

Thanks , this again solves my problem (in another computer)

But can any shed light on what does this command actually do ?

I am sure if my understanding needs improving, someone will be along soon!

Until then: perl-cleaner identifies packages installed with the earlier version of perl, and re-emerges them for the latest version you have installed. This avoids any problems arising from changes from one version of perl to the next. It does install a simple man page if you want to see the options available.

Back to top Zwisel
n00b
n00b

Joined: 17 Sep 2005
Posts: 24
Location: switzerland

Back to top huuan
Apprentice
Apprentice

Joined: 19 Feb 2007
Posts: 265
Location: California

Back to top Jake
Veteran
Veteran

Joined: 31 Jul 2003
Posts: 1132

Back to top

Display posts from previous:   

  • Index
  • » Newbie Corner
  • » [Solved] error: XML::Parser perl module is required for intltool

Pages: 1

#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 :

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)

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

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
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

#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

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

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
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

#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 !

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

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
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

#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)


0

1

здравствуйте, в общем это emerge —ask app-portage/layman
дает ошибку:

checking for perl >= 5.8.1... 5.24.0
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/work/gtksourceview-2.10.5/config.log
 * ERROR: x11-libs/gtksourceview-2.10.5-r3::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_configure
 *             environment, line 3027:  Called gnome2_src_configure '--disable-glade-catalog'
 *             environment, line 2205:  Called econf '--disable-gtk-doc' '--disable-maintainer-mode' '--enable-compile-warnings=minimum' '--docdir=/usr/share/doc/gtksourceview-2.10.5-r3' '--disable-glade-catalog'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/gtksourceview-2.10.5-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/gtksourceview-2.10.5-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/work/gtksourceview-2.10.5'
 * S: '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/work/gtksourceview-2.10.5'

>>> Failed to emerge x11-libs/gtksourceview-2.10.5-r3, Log file:

>>>  '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/temp/build.log'

 * Messages for package x11-libs/gtksourceview-2.10.5-r3:

 * ERROR: x11-libs/gtksourceview-2.10.5-r3::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_configure
 *             environment, line 3027:  Called gnome2_src_configure '--disable-glade-catalog'
 *             environment, line 2205:  Called econf '--disable-gtk-doc' '--disable-maintainer-mode' '--enable-compile-warnings=minimum' '--docdir=/usr/share/doc/gtksourceview-2.10.5-r3' '--disable-glade-catalog'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/gtksourceview-2.10.5-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/gtksourceview-2.10.5-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/work/gtksourceview-2.10.5'
 * S: '/var/tmp/portage/x11-libs/gtksourceview-2.10.5-r3/work/gtksourceview-2.10.5'

до этого пересобирал(как посоветовали) perl из-за другой ошибки:

emerge -C $(qlist -IC virtual/perl-)
emerge --ask perl

и ncurses:

emerge -C sys-libs/ncurses
emerge -1 =sys-libs/ncurses-5.9-r4
emerge -1u =sys-libs/ncurses-6.0

Понравилась статья? Поделить с друзьями:
  • Error x reader фанфики
  • Error x reader x ink
  • Error x reader smut
  • Error ошибка лишние данные после содержимого последнего столбца
  • Error ошибка инициализации графического устройства ок