LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while installing xml perl modules (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-installing-xml-perl-modules-4175421356/)

varunb 08-10-2012 03:54 AM

error while installing xml perl modules
 
Hi,

I am using SUSE Linux Enterprise Server 11 SP1 (x86_64)

wanted to install perl and there modules,
i am getting a error while installing some modules.

Code:

server:/usr/local/src # perl -MCPAN -e shell

cpan[1]> install  XML::LibXML                                                                                                               
Running install for module 'XML::LibXML'
Running make for S/SH/SHLOMIF/XML-LibXML-2.0004.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/XML-LibXML-2.0004-DXesiW
  No 'Makefile' created
, won't make
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install


can anyone please help me to install XML module????

business_kid 08-10-2012 04:32 AM

cd to that /root/.cpan/build/XML-LibXML-2

The cardinal error is
Quote:

No 'Makefile' created
You should have a file called 'Makefile' (not Makefile.in, or Makefile.am, or anything)

If not, check for a file called configure, and run it
Quote:

./configure

knudfl 08-10-2012 05:20 AM

The first choice should be : # zypper in perl perl-base perl-XML-LibXML

No Internet or no license ?
Use an older stable version of XML::LibXML, e.g. version 1.95.
Or build version 2.0004 manually ...
http://mirrors.dotsrc.org/cpan/autho...-2.0004.tar.gz
cd XML-LibXML-2.0004/ && perl Makefile.PL && make ; # make install
( The package 'libxml2-devel' must be installed to build XML::LibXML ).

... Or use the source SRC.RPM to build an rpm package :
http://ftp5.gwdg.de/pub/opensuse/sou...95-5.4.src.rpm
> perl-XML-LibXML-1.95-5.4.src.rpm

.


All times are GMT -5. The time now is 03:42 PM.