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, MSWin32).
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'. 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. 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 reason
> to reinstall pure-perl modules.
>
> Cheers,
>
> Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
> Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
> Kent, CT11 9PW
>
>
--
________________________________
Oren Maurer
http://meorero.wordpress.com
http://www.meorero.org.il
_______________________________
# =======================|
# Please avoid sending me Word |
# or PowerPoint attachments |
# =======================|
# 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>
