Hi,

I would like to install a single threaded copy of some modules (DateTime and DateTime::Format::MySQL) using cpan.

I have multi threaded perl on freebsd ("This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi") and cpan installs the module into /usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi

Unfortunately that path isn't in the default @INC for my modperl environment, and apparently for a good reason because when I try to include it, apache crashes with the following error or a memory dump appearing the error_log: /usr/local/etc/apache/bin/httpd: symbol lookup error: /usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi//auto/Params/Validate/Validate.so: undefined symbol: Perl_Gthr_key_ptr

/usr/local/lib/perl5/site_perl/5.10.1/x86_64-linux is in the default @INC, so it is the same perl version 5.10.1, it is just a issue with the multi threaded.

Is there a way to force single threaded compiling of the package when installing?

Alternatively, how can I find out what perl binary Apache Modperl 2 is actually running? I can't find any perl binary on my system other than default one, so I assume it must be running the same multi threaded perl, but if it were running a single threaded perl binary I could potentially run cpan for the other perl binary and install the single threaded module that way.

Thanks

In reply to how to Install/compile module as single threaded by barsh

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.