Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

linking libxml2

by shan_emails (Beadle)
on Jul 10, 2013 at 13:58 UTC ( [id://1043476]=perlquestion: print w/replies, xml ) Need Help??

shan_emails has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I need to install Apache::Pagekit module. So now i am installing the pre-required module "XML-LibXML" for that i have download like below and try to install. it says that not able to link "libxml2". then i have download libxml2 and intalled then tried again but then also i could not able to succeed.
So shall i know how to link this installed libxml2.
Do i need to add the libxml2 installed directory(/xx/xx/lib) into the file "/etc/ld.so.conf" and Update the dynamic loader cache by running: ldconfig

bash-3.2$ wget http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XM +L-LibXML-2.0019.tar.gz bash-3.2$ tar zxvf XML-LibXML-2.0019.tar.gz
Note: I don't have root access and my Operation System is linux RedHat.

Thanks in advance
Shanmugam A.

Replies are listed 'Best First'.
Re: linking libxml2
by daxim (Curate) on Jul 10, 2013 at 14:37 UTC
    INC=-I/install/others/include/libxml2

    … which you could have figured out all by yourself if you had just followed the advice to run with DEBUG=1.

      Hi Thanks for your suggestion,
      below is the DEBUG=1 included output Thanks,

        LIBS='-L/install/others/include/libxml2'
        ⋮
        libxml2 not found
        
        Do you notice something? Why did you change the LIBS parameter? It's wrong now.
Re: linking libxml2
by derby (Abbot) on Jul 10, 2013 at 15:09 UTC

    I need to install Apache::Pagekit module...

    For the love of all that is holy and sacred, why? If you need to migrate a legacy system then I feel your pain but if you're starting from scratch please run far and fast from this "hasn't been updated in 9 years" framework into something a bit more modern like Catalyst or something built upon starman. The mod_perl/XML pipelines had their day and I, for one, am thankful they're over.

    -derby
Re: linking libxml2
by thomas895 (Deacon) on Jul 10, 2013 at 23:04 UTC

    libxml2 is not by itself a Perl library. XML::LibXML is simply a wrapper around the interface it provides. Therefore, you must install libxml2 to your system first. Your command lines suggest the usage of GNU/Linux. If this is indeed so, then you can use your distribution's package manager(zypper, yum, apt, or others) to quickly install libxml2. In your case, you should ask your system administrator.
    If no such system is available, then you must download the sources from their website. Then, when running the configure script, specify --prefix to be somewhere in your home directory.

    That possibility was already hinted at in the dump you provided. You might want to read it, you know. ;-)

    ~Thomas~ 
    "Excuse me for butting in, but I'm interrupt-driven..."
      I downvoted your answer because the question already said the library is installed in a custom location.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1043476]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-18 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found