From owner-freebsd-perl@FreeBSD.ORG Sun Mar 1 12:02:29 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 ABA8F106590A for ; Sun, 1 Mar 2009 12:02:29 +0000 (UTC) (envelope-from meorero@gmail.com) Received: from mail-bw0-f164.google.com (mail-bw0-f164.google.com [209.85.218.164]) by mx1.freebsd.org (Postfix) with ESMTP id 4E2518FC26 for ; Sun, 1 Mar 2009 12:02:27 +0000 (UTC) (envelope-from meorero@gmail.com) Received: by bwz8 with SMTP id 8so1567212bwz.43 for ; Sun, 01 Mar 2009 04:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aHRcfBv5a2RC4AijmSSu6IkJaCxJMWYvdvtI1Ou3bVs=; b=YU8GWDv97cPmYJEERG4KBY2PYgL/4IHcTj7i31XYu8lk1OVXaYIiWjmEzx6G/0Fq2H KWG5g4/JsPUrs6wsRFeNJ0IHmYJph5XcNk1PXkZfy+tPS872IpG0be8DyCmX8L567O9E yY8CWAIvhBGFwmoaSzHWjLO5YHjihL6COF8iA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BC5xZfiJ43WRaSmCjPHpdmQ9KMSgGsfoyuMCKAR/c2yeb6SvIWfUSYxYbdyBI1P8DD CiWt5jHyGASisNPCI9Rh/NyYXIo7Bqkmc9okiDHDaDx+53a3L1N4cvwxFWpB+4OT2QG6 T4+nbBA9RkEVlMKrR7SAxo8GCab4ZUtXxTwEc= MIME-Version: 1.0 Received: by 10.181.221.7 with SMTP id y7mr1671753bkq.195.1235908947161; Sun, 01 Mar 2009 04:02:27 -0800 (PST) In-Reply-To: <49AA6490.7080305@infracaninophile.co.uk> References: <49AA6490.7080305@infracaninophile.co.uk> Date: Sun, 1 Mar 2009 14:02:27 +0200 Message-ID: From: Oren Maurer To: freebsd-perl@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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 12:02:45 -0000 Is there a reason for not having threaded Perl as the default? Is it matter of History (compatibility with past code)? Or internal FreeBSD reason (memory)? I have seen other OS's - that do use threaded Perl as default (Linux, MSWin= 32). But in all of those OS's I have Perl 5.10. (hint .... hint....) I hope that when Perl 5.10 port will be available for FreeBSD - It will be threaded. Oren. On Sun, Mar 1, 2009 at 12:33 PM, Matthew Seaman wrote: > Oren Maurer wrote: >> >> Hello all. >> >> 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). >> >> In short: >> I have FreeBSD 7.1. >> >> 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'. =A0Note that if you're usin= g > other applications that embed a perl interpreter (mod_perl, snmpd) they > may not work correctly with a threaded perl. =A0At minimum you'll have to > recompile them. =A0Similarly perl modules that use .xs to generate compil= ed > loadable objects may also need recompilation or may not work at all. Best= to > test this out thoroughly on a spare machine before you put it on > anything production. > > =A0 # cd /usr/ports/lang/perl5.8 > =A0 # make config > =A0 =A0 =A0 =A0 =A0Ensure the THREADS option is checked in the dialogue: > =A0 =A0 =A0 =A0 [X] THREADS =A0 =A0 =A0 =A0Build threaded perl > =A0 # portupgrade -f lang/perl5.8 > > To ensure *everything* is recompiled against the new threaded perl, you > can do: > > =A0 # 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. =A0There's no reason to recompile ports whose only dependency o= n > perl is because they use automake at compile time. =A0Nor is there any re= ason > to reinstall pure-perl modules. > > =A0 =A0 =A0 =A0Cheers, > > =A0 =A0 =A0 =A0Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 7 Pri= ory Courtyard > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey =A0 =A0 Ramsgate > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 Kent, CT11 9PW > > --=20 ________________________________ Oren Maurer http://meorero.wordpress.com http://www.meorero.org.il _______________________________ # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| # Please avoid sending me Word | # or PowerPoint attachments | # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| # See: http://www.gnu.org/philosophy/no-word-attachments.html