LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2015, 11:36 AM   #1
gaurav_s
Member
 
Registered: Jul 2014
Posts: 43

Rep: Reputation: Disabled
perl module installation dependency


I am installing a perl module XML::LibXML

when i executed perl Makefile.PL

i got below errors:

enable native perl UTF8
running xml2-config... failed
using fallback values for LIBS and INC
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lz -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

looking for -lxml2... no
libxml2 not found
Try setting LIBS and INC values on the command line
Or get libxml2 from
http://www.libxml.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.




#################################################

I have downloaded libxml2

and executing

/usr/bin/perl Makefile.PL LIBS='-L/usr/lib/vmware-tools/lib64/ -lxml2' INC='-I/home/vse/gaurav/test/libxml2-2.9.2/include'



But again i got the same error.

Please guide me.
 
Old 07-22-2015, 12:01 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,039

Rep: Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234Reputation: 1234
The Perl module is an interface to the library, so the library must already be installed on your system before you can install the Perl code.

For RedHat-based systems, this would be something like:
Code:
yum install libxml2
You should install the Perl module the same way that you installed Perl. If you built it from source, then you are doing the right thing. If it was installed as part of the distro, then there is probably a package for the Perl module. For Redhat it would be:

Code:
yum install perl-XML-LibXML
If there is no package, then you can use cpan to install it rather than go through the manual steps.

Last edited by smallpond; 07-22-2015 at 12:02 PM.
 
Old 07-22-2015, 04:47 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,357
Blog Entries: 4

Rep: Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821Reputation: 3821
And, not to "diss" LQ, I would invite you to visit http://www.perlmonks.org, a somewhat-prickly place that is nevertheless dedicated to the Perl language.
 
  


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
yum: failed dependency for installed perl module stehman Linux - Server 5 10-17-2011 12:53 PM
Perl module dependency problem coolamit78 Linux - Software 2 11-13-2005 12:18 PM
perl module installation init-5 Linux - Software 26 10-25-2004 04:14 AM
perl module installation black_man Slackware 2 10-17-2004 01:57 PM
Mandrake 9.1 does not pass checking module dependency during boot after installation Middelburg Linux - Newbie 1 06-20-2003 10:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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