in reply to Warnings installing XML::CanonicalizeXML (Re: I am getting an error ...)
in thread XML::CanonicalizeXML install issue

output for xml2-config --libs: -lxml2 -lz -lm -ldl

output for xml2-config --cflags: -lxml2 -lz -lm -ldl

after installing libxml2, we have execute XML-CanonicalizeXML-0.10 we are getting an error like this:

MakeMaker (v6.68) Potential libraries are '-lxml2 -lz -lm -ldl': xml2 not found in /usr/local/lib64 '-lxml2' found at /lib64/libxml2.so.2.9.1 z not found in /usr/local/lib64 '-lz' found at /lib64/libz.so.1.2.7 m not found in /usr/local/lib64 '-lm' found at /lib64/libm.so.6 dl not found in /usr/local/lib64 '-ldl' found at /lib64/libdl.so.2 Warning (non-fatal): Target 'dynamic' depends on targets in skipped se +ction 'dynamic_lib' Warning (non-fatal): Target 'static' depends on targets in skipped sec +tion 'static_lib'
  • Comment on Re: Warnings installing XML::CanonicalizeXML (Re: I am getting an error ...)
  • Download Code

Replies are listed 'Best First'.
Re^2: Warnings installing XML::CanonicalizeXML
by hippo (Archbishop) on Dec 21, 2022 at 08:34 UTC
    output for xml2-config --cflags: -lxml2 -lz -lm -ldl

    That suggests to me that you have not installed the headers.


    🦛

      how do i install the headers?

        Depending on the OS sudo apt install libxml2-dev or libxml2-devel.