SliTaz SliTaz Forum archive

This forum is now a read-only archive

The SliTaz community has moved to Maille, a forum made for SliTaz.

We looked hard for a replacement for this aging forum, including a move from bbPress to FluxBB last June. But spam bots now get through sign-up even with mail confirmation, and these forum engines are barely maintained anymore. So we wrote a forum in the SliTaz spirit: small, fast, no JavaScript, works on old machines and in text browsers. Everything here stays readable.

Go to Maille

You are not logged in.

#1 2012-05-20 17:32:50

arthurg
Member
Registered: 2012-05-20
Posts: 2

How to install perl with threading support

Im trying to run a perl script that uses multiple threads and I get the following error:

"This perl not built to support threads"

Is there a way to install or recompile perl with threading support?

Offline

#2 2012-05-20 22:11:30

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: How to install perl with threading support

I'm absolutely not a Perl programmer. I think this will help:

ERRORS

- This Perl not built to support threads

The particular copy of Perl that you're trying to use was not built using the useithreads configuration option.

Having threads support requires all of Perl and all of the XS modules in the Perl installation to be rebuilt; it is not just a question of adding the threads module (i.e., threaded and non-threaded Perls are binary incompatible.)

Cite source: http://perldoc.perl.org/threads.html

Add given option to existing perl receipts and recook (rtfm for how to cook).

Offline

#3 2012-05-20 23:56:17

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: How to install perl with threading support

Would technically be easier just to compile perl from scratch with the required options. It's really the only way to get everything working properly - or so says my perl mad developer friend...

Offline

#4 2012-05-22 20:12:53

arthurg
Member
Registered: 2012-05-20
Posts: 2

Re: How to install perl with threading support

thank you guys, i solved the problem installing Active Perl, apparently this version is compiled with threads.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]