Date: Sun, 1 Mar 2009 14:02:27 +0200 From: Oren Maurer <meorero@gmail.com> To: freebsd-perl@freebsd.org Subject: Re: How / where to get a Perl that has threads? Message-ID: <b0f44f380903010402g357dea66jb1954d57f4cff931@mail.gmail.com> In-Reply-To: <49AA6490.7080305@infracaninophile.co.uk> References: <b0f44f380903010005m4010367asc1b54daf3604f61@mail.gmail.com> <49AA6490.7080305@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <m.seaman@infracaninophile.co.uk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b0f44f380903010402g357dea66jb1954d57f4cff931>