Hello, I have some problem regarding installing XML::LibXML. I have already installed libxml2 and gcc. When I run the “make” command I get the following error:
gcc -c -I/usr/include/libxml2 -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI_ +_ -fno-str ict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION +=\"1.70\" -DXS_VERSION=\"1.70\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" -DHAV +E_UTF8 -DH AVE_BLANK Av_CharPtrPtr.c /usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/l +ib/perl5/5 .10/ExtUtils/typemap -typemap typemap LibXML.xs > LibXML.xsc && mv Li +bXML.xsc L ibXML.c Can't find typemap in /cygdrive/c/Perl/lib/XML-LibXML-1.70 make: *** [LibXML.c] Error 255
I have read a solution posted on: http://aspn.activestate.com/ASPN/Mail/Message/perl-xml/3687924. But as I mentioned I have already installed libxml2 and gcc. The typemap file is in the directory "c/Perl/lib/XML-LibXML-1.70" and I cannot understand why it cannot find it. Even when I try to install XML::LibXML::Common 0.13 I get exactly the same error as above regarding typemap. I read on the following page: http://www.brandonhutchinson.com/installing_perl_modules.html that “Note: you should use the same compiler to build Perl modules that you used to build Perl. For example, if you are building Perl modules with gcc and are using a version of Perl that was supplied with your distribution (ex. Solaris 8 includes Perl 5.005_03), you may run into errors.” Could this be related to me? If yes how can I solve it. Thanks, Laleh

In reply to XML::LibXML installation problem by laleh-poly

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.