I am trying to build and test a local copy of perlcritic, which includes one submodule (clone.pm) that uses embedded C code. I need to test this with our official release perl before requesting this .so file be added there. If I build a local version of perl, I can populate the site_perl directory with this file, and it works fine. How can I point to this file outside of the normal location to avoid the 2 problems I currently get:

What? ~/sources/Perl-Critic-1.117/bin/perlcritic -1 /u/bobvdk/LEDA_RUN +/leda_bob.pl Problem while critiquing "/u/bobvdk/LEDA_RUN/leda_bob.pl": Can't parse + code: Usage: Clone::clone(self, depth=-1) at /u/spraguma/perllib/PPI +/Token/Whitespace.pm line 80.

or:

What? ~/sources/Perl-Critic-1.117/bin/perlcritic -1 /u/bobvdk/LEDA_RUN +/leda_bob.pl object version 0.31 does not match bootstrap parameter 0.31 at /usr/l +ib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 253. Compilation failed in require at /u/spraguma/perllib/PPI/Element.pm li +ne 25. BEGIN failed--compilation aborted at /u/spraguma/perllib/PPI/Element.p +m line 25. Compilation failed in require at /u/spraguma/perllib/PPI/Token.pm line + 25. BEGIN failed--compilation aborted at /u/spraguma/perllib/PPI/Token.pm +line 25. Compilation failed in require at /u/spraguma/perllib/PPI/Token/Quote.p +m line 49. BEGIN failed--compilation aborted at /u/spraguma/perllib/PPI/Token/Quo +te.pm line 49. Compilation failed in require at /u/spraguma/perllib/PPI/Token/Quote/S +ingle.pm line 38. BEGIN failed--compilation aborted at /u/spraguma/perllib/PPI/Token/Quo +te/Single.pm line 38. Compilation failed in require at /u/spraguma/perllib/Perl/Critic/Utils +.pm line 23. BEGIN failed--compilation aborted at /u/spraguma/perllib/Perl/Critic/U +tils.pm line 23. Compilation failed in require at /u/spraguma/perllib/Perl/Critic/Excep +tion/Parse.pm line 18. BEGIN failed--compilation aborted at /u/spraguma/perllib/Perl/Critic/E +xception/Parse.pm line 18. Compilation failed in require at /u/spraguma/perllib/Perl/Critic/Comma +nd.pm line 21. BEGIN failed--compilation aborted at /u/spraguma/perllib/Perl/Critic/C +ommand.pm line 21. Compilation failed in require at /u/spraguma/sources/Perl-Critic-1.117 +/bin/perlcritic line 20. BEGIN failed--compilation aborted at /u/spraguma/sources/Perl-Critic-1 +.117/bin/perlcritic line 20.

In reply to Using side .so files by WrestlerDad

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.