Archived Forum Post

Index of archived forum posts

Question:

Chilkat Perl Module OSX 10.11

Oct 28 '15 at 14:47

Getting the following error using perl 5.22.0

use chilkat;
Can't load '/Users//perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/libchilkat.dylib' for module chilkat: dlopen(/Users/skingsbury/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/libchilkat.dylib, 1): Symbol not found: _PL_thr_key
  Referenced from: /Users/skingsbury/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/libchilkat.dylib
  Expected in: dynamic lookup
 at /Users/skingsbury/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/chilkat.pm line 11.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.

Answer

I Googled the error, and found this: "... The error comes from a module compiled against threaded Perl while your Perl installation is not threaded... "

The Chilkat Perl module expects a Perl compiled for multi-thread. Too much of Chilkat nowadays relies on multi-threading, and therefore it's not feasible to try to support single-thread environments.