Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2009 10:33:52 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Oren Maurer <meorero@gmail.com>
Cc:        freebsd-perl@freebsd.org
Subject:   Re: How / where to get a Perl that has threads?
Message-ID:  <49AA6490.7080305@infracaninophile.co.uk>
In-Reply-To: <b0f44f380903010005m4010367asc1b54daf3604f61@mail.gmail.com>
References:  <b0f44f380903010005m4010367asc1b54daf3604f61@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49AA6490.7080305>