We are trying to install
XML::LibXSLT 1.58
Using a sunfreeware.com Xslt C library, file name libxml2-2.6.16-sol8-sparc-local.gz , I got this error after executing perl Makefile.PL

# perl Makefile.PL running xslt-config... ok looking for -lxslt... no libxslt not found Try setting LIBS and INC values on the command line Or get libxslt and 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.
Using pkgadd –d the library was installed in:
# ls /usr/local/lib libexslt.a libexslt.so.0.8.2 libstdc++.la libxslt.a libxslt.so.1.1.2 libz.so.1.2.1 libexslt.la libgcc_s.so libstdc++.so libxslt.la libz.a pkgconfig libexslt.so libgcc_s.so.1 libstdc++.so.6 libxslt.so libz.so sparcv9 libexslt.so.0 libstdc++.a libstdc++.so.6.0.1 libxslt.so.1 libz.so.1 xsltConf.sh
Inside the file Makefile.PL this line points to:
$config{LIBS} = '-L/usr/local/lib -L/usr/lib -lxslt -lxml2 -lz -lm';
--which is apparently creating the above error.

We did also visit http://www.libxml.org/ --as recommended-- But we found the single download file of what seems to be source code only, no instructions or make files, etc. That is why we are using the sun freeware. We are running Solaris 8.
Hope this is clear and complete enough. Can you see what we are doing wrong? We tried a lot more than I show here, but it all boils down to this, as shown.

Edit: holli added rudimentary formatting.

In answer to the 2 suggestions below:
Did the Make file as requested. It didn't work but we are attempting to edit the makefile it produced, supplying needed libraries, paths. As of today (4/10/06) we tested the new install and it seems to be working. Testing indicated a minority of scripts failing, but this likely means nothing; that happens on some packages. Basically we had to create our own Makefile...gradually, step by step.
We had already installed XML::LibXML::Common first. The basic problem is the build won't find the library libxslt when given a valid path to it.

In reply to libxslt not found by rhall30

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.