LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 05-03-2016, 06:32 PM   #1
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 05-03-2016, 10:21 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
did you read the error ?

Quote:
WARNING: unrecognized options: --disable-static

WARNING: xsltproc not found

XML::Parser... configure: error: XML::Parser perl module is required for intltool
you missed a prerequisite

reread the chapter and see what you missed
 
Old 05-04-2016, 07:54 AM   #3
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
did you read the error ?



you missed a prerequisite

reread the chapter and see what you missed
I've installed not work sir.

Code:
# ./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
 
Old 05-04-2016, 08:01 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Perl module XML::Parser is needed, not present in your system. Don't you see the error you are getting?
 
Old 05-04-2016, 08:41 AM   #5
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
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.
 
Old 05-04-2016, 08:52 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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?
 
1 members found this post helpful.
Old 05-04-2016, 10:44 AM   #7
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
[deleted]

Last edited by kcirick; 05-04-2016 at 10:51 AM.
 
Old 05-04-2016, 11:09 AM   #8
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 05-04-2016, 10:20 PM   #9
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Krejzi View Post
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.
i will try reinstall perl not work.
 
Old 05-05-2016, 09:56 AM   #10
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
solved i will try to remove dir tools, reinstall perl install xml:arser and install intltool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
Gtkpod - configure: error: XML::Parser perl module is required for intltool lazyboy994 Linux - Software 6 03-20-2008 09:17 PM
Error - XML::Parser perl module is required for intltool Rudy Linux - General 7 06-15-2006 11:43 AM
XML::Parser perl module is required for intltool, for LogJam GT_Onizuka Linux - Newbie 7 06-30-2005 07:49 AM
XML::Parser perl mod is req 4 intltool error BorisMcHack Slackware 4 06-23-2004 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration