The module threads.pm throws this error.

When Perl loads threads.pm, this modules is doing:

# Verify this Perl supports threads
require Config;
if (! $Config::Config{useithreads}) {
    die("This Perl not built to support threads\n");
} 


in Config.pm is a section that defines the internal Perl configuration.

I've marked the important line, that must be defined with '<-HERE'

This is an example from Perl on Windows.

tie %Config, 'Config', {
    archlibexp => 'C:\Perl\\lib',
    archname => 'MSWin32-x86-multi-thread',
    d_readlink => undef,
    d_symlink => undef,
    dlext => 'dll',
    dlsrc => 'dl_win32.xs',
    dont_use_nlink => undef,
    exe_ext => '.exe',
    inc_version_list => '',
    intsize => '4',
    ldlibpthname => '',
    osname => 'MSWin32',
    osvers => '6.2',
    path_sep => ';',
    privlibexp => 'C:\Perl\\lib',
    scriptdir => 'C:\Perl\\bin',
    sitearchexp => 'C:\Perl\\site\\lib',
    sitelibexp => 'C:\Perl\\site\\lib',
    so => 'dll',
    useithreads => 'define',  <- HERE
    usevendorprefix => undef,
    version => '5.14.2',
};


Possibly the installer has made a mistake on your system - no clue why.

Thomas



Von:    Phil Daws <[email protected]>
An:     For Users of ASSP <[email protected]>, 
Datum:  29.08.2012 20:27
Betreff:        [Assp-user] Perl & Threads



Hello: 

have built Perl 5.16.1 from source on CentOS 6.3 and installed all the 
necessary modules, from CPAN, for ASSP but when I action perl -c assp.pl I 
see the following: 

[root@mx2 assp]# perl -c assp.pl 
This Perl not built to support threads 
Compilation failed in require at assp.pl line 97. 
BEGIN failed--compilation aborted at assp.pl line 97. 
[root@mx2 assp]# perl -V 
Summary of my perl5 (revision 5 version 16 subversion 1) configuration: 

Platform: 
osname=linux, osvers=3.2.20-vs2.3.2.10, archname=x86_64-linux 
uname='linux mx2.xxxxxx.xxxxx 3.2.20-vs2.3.2.10 #2 smp thu jul 5 11:09:28 
bst 2012 x86_64 x86_64 x86_64 gnulinux ' 
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -DDEBUGGING=-g -Dversion=5.16.1 -Dmyhostname=localhost 
-Dperladmin=root@localhost -Dcc=gcc -Dprefix=/usr/local 
-Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 
-Dsitearch=/usr/local/lib64/perl5 -Dinc_version_list=5.16.0 
-Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 
/usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles 
-Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto 
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto 
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto 
-Dusesitecustomize' 


I specified usethreads on the Configure so what could be wrong please ? 

-- 
Thanks, Phil 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to