From owner-freebsd-perl@FreeBSD.ORG Sun Mar 1 10:34:04 2009 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7B511065674 for ; Sun, 1 Mar 2009 10:34:04 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6857F8FC15 for ; Sun, 1 Mar 2009 10:34:04 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n21AXwhI014607; Sun, 1 Mar 2009 10:33:59 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n21AXwhI014607 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1235903639; bh=B4m1isaf5ftwtqTbtje+hW1sbbdSKuBBUVe3tVmhvRU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<49AA6490.7080305@infracaninophile.co.uk>|Date:=20S un,=2001=20Mar=202009=2010:33:52=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090218)|MIME-Vers ion:=201.0|To:=20Oren=20Maurer=20|CC:=20freebsd -perl@freebsd.org|Subject:=20Re:=20How=20/=20where=20to=20get=20a= 20Perl=20that=20has=20threads?|References:=20|In-Reply-To:=20|X-Enigmail-Versi on:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sh a256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20 boundary=3D"------------enig8DEF56AA9312053F9D5648CE"; b=C9XvGNPc5RQrhkyW2ThAO9bl4CPLgF48A1njCG6exeXTUlc/MomxBazn351Q5BXJ1 oQEnW0mFmO60ObS3ZCc8VPsTrum3DYr1wkpToS28yCNnz7kbDWRWdqzr1HUIpJ9GYI LUMvcewEDkiPFcfEhke3yR8LcnDiYCIFfURqgs8o= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <49AA6490.7080305@infracaninophile.co.uk> Date: Sun, 01 Mar 2009 10:33:52 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090218) MIME-Version: 1.0 To: Oren Maurer References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig8DEF56AA9312053F9D5648CE" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 01 Mar 2009 10:33:59 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/9059/Sun Mar 1 09:05:32 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-perl@freebsd.org Subject: Re: How / where to get a Perl that has threads? X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 10:34:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8DEF56AA9312053F9D5648CE Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Oren Maurer wrote: > Hello all. >=20 > As I'm new to this list - please forgive me for a newbie questions > (but I promise to at least try to first Google and search this list > archives). >=20 > In short: > I have FreeBSD 7.1. >=20 > It seems to have Perl without threads . And I do need threads. > How can I get it? You have to re-install perl from ports and you have to select the config option that says 'build a perl with threads'. Note that if you're using other applications that embed a perl interpreter (mod_perl, snmpd) they may not work correctly with a threaded perl. At minimum you'll have to recompile them. Similarly perl modules that use .xs to generate compiled= loadable objects may also need recompilation or may not work at all.=20 Best to test this out thoroughly on a spare machine before you put it on anything production. # cd /usr/ports/lang/perl5.8 # make config Ensure the THREADS option is checked in the dialogue: [X] THREADS Build threaded perl # portupgrade -f lang/perl5.8 To ensure *everything* is recompiled against the new threaded perl, you can do: # portupgrade -fr lang/perl5.8 but be warned: that is basically going to recompile virtually every port you've got installed which will take approximately forever and is really overkill. There's no reason to recompile ports whose only dependency on perl is because they use automake at compile time. Nor is there any reas= on to reinstall pure-perl modules. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig8DEF56AA9312053F9D5648CE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmqZJYACgkQ8Mjk52CukIyj6wCcD1TGtLv9LKO5S3anhpt5q5cm ufQAni0P3HLx310teLoRgHt6ZRrfTmFB =vJ6g -----END PGP SIGNATURE----- --------------enig8DEF56AA9312053F9D5648CE--