|Perl Monk, Perl Meditation|
how to Install/compile module as single threadedby barsh (Novice)
|on Aug 30, 2012 at 20:36 UTC||Need Help??|
barsh has asked for the
wisdom of the Perl Monks concerning the following question:
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