[SOLVED] configure: error: XML::Parser perl module is required for intltool
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
configure: error: XML::Parser perl module is required for intltool
I tried to install the config xkeyboard 2:17 but had an error when configure, What should I do sir?
Code:
#./configure $XORG_CONF
> make
configure: WARNING: unrecognized options: --disable-static
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /tools/bin/sed
checking for xsltproc... no
configure: WARNING: xsltproc not found - cannot transform XML documents
checking for a sed that does not truncate output... (cached) /tools/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking whether NLS is requested... yes
checking for intltool >= 0.30... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /tools/bin/xgettext
checking for msgmerge... /tools/bin/msgmerge
checking for msgfmt... /tools/bin/msgfmt
checking for gmsgfmt... /tools/bin/msgfmt
checking for perl... /tools/bin/perl
checking for perl >= 5.8.1... 5.22.1
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
i tried to reinstall intool
Code:
# sed -i 's:\\\${:\\\$\\{:' intltool-u
(lfs-chroot) root:/sources/intltool-0.51.0# ./configure --prefix=/usr
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for perl... /tools/bin/perl
checking for perl >= 5.8.1... 5.22.1
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
i user perl:
Code:
# perl -v
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux
Copyright 1987-2015, Larry Wall
I experience problems when perl Makefile.PL and intool
Code:
(lfs-chroot) root:/sources/XML-Parser-2.44# perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite LWP::UserAgent 0 not found.
Have /tools/lib/perl5/5.22.1
Want /tools/lib/perl5/5.22.1/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.22.1]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Have /tools/lib/perl5/5.22.1
Want /tools/lib/perl5/5.22.1/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.22.1]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
ERROR from evaluation of /sources/XML-Parser-2.44/Expat/Makefile.PL: Failed to opendir '/tools/lib/perl5/5.22.1/x86_64-linux/CORE' to find header files: No such file or directory at /tools/lib/perl5/5.22.1/ExtUtils/MM_Any.pm line 2853.
# ./configure $XORG_CONFIG --with-xkb-rules-symlink=xorg &&
> make
configure: WARNING: unrecognized options: --disable-static
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /tools/bin/sed
checking for xsltproc... /usr/bin/xsltproc
checking for a sed that does not truncate output... (cached) /tools/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking whether NLS is requested... yes
checking for intltool >= 0.30... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /tools/bin/xgettext
checking for msgmerge... /tools/bin/msgmerge
checking for msgfmt... /tools/bin/msgfmt
checking for gmsgfmt... /tools/bin/msgfmt
checking for perl... /tools/bin/perl
checking for perl >= 5.8.1... 5.22.1
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Perl module XML::Parser is needed, not present in your system. Don't you see the error you are getting?
yes I know it and I try to install again but failed both recompile and install through xml parser in cpan.
Code:
cpan > install XML::Parser
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
HTTP::Tiny failed with an internal error: Could not connect to 'www.cpan.org:80': Temporary failure in name resolution
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:06-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:06-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
No external ftp command available
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
HTTP::Tiny failed with an internal error: Could not connect to 'www.cpan.org:80': Temporary failure in name resolution
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:06-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:06-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
No external ftp command available
Please check, if the URLs I found in your configuration file
(http://www.cpan.org/) are valid. The urllist can be edited. E.g. with 'o
conf urllist push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
HTTP::Tiny failed with an internal error: Could not connect to 'www.cpan.org:80': Temporary failure in name resolution
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:07-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:07-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
No external ftp command available
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
HTTP::Tiny failed with an internal error: Could not connect to 'www.cpan.org:80': Temporary failure in name resolution
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:07-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2016-05-04 20:39:07-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'www.cpan.org'
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp6499'. Giving up on it.
No external ftp command available
Please check, if the URLs I found in your configuration file
(http://www.cpan.org/) are valid. The urllist can be edited. E.g. with 'o
conf urllist push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz
Terminal does not support GetHistory.
Lockfile removed.
Code:
# perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite LWP::UserAgent 0 not found.
Have /tools/lib/perl5/5.22.1
Want /tools/lib/perl5/5.22.1/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.22.1]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
Have /tools/lib/perl5/5.22.1
Want /tools/lib/perl5/5.22.1/x86_64-linux
Your perl and your Config.pm seem to have different ideas about the
architecture they are running on.
Perl thinks: [5.22.1]
Config says: [x86_64-linux]
This may or may not cause problems. Please check your installation of perl
if you have problems building this extension.
ERROR from evaluation of /sources/XML-Parser-2.44/Expat/Makefile.PL: Failed to opendir '/tools/lib/perl5/5.22.1/x86_64-linux/CORE' to find header files: No such file or directory at /tools/lib/perl5/5.22.1/ExtUtils/MM_Any.pm line 2853.
Your compile and install did not fail, fetching the tarball failed because your DNS is not configured properly. Don't you read the errors you are getting?
It appears that /tools/bin is in your path. configure is picking up perl from /tools/bin, and the XML::Parser install was done for perl installed in /usr/bin, which probably explains why intltool doesn't work.
It appears that /tools/bin is in your path. configure is picking up perl from /tools/bin, and the XML::Parser install was done for perl installed in /usr/bin, which probably explains why intltool doesn't work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.