[Padre-dev] "cpan> install Padre'" on FreeBSD 7.1: Padre requires a perl built using threads

breno breno at rio.pm.org
Sun Mar 1 09:40:58 PST 2009


On Sat, Feb 28, 2009 at 5:33 PM, Shmuel Fomberg <semuelf at 012.net.il> wrote:
> This is one of the problems I have with the Perl world: non-standard perl.
> When I tried to build Perl from source, the build script question me
> about a lot of things, like if I want threaded perl or not, and a lot of
> other questions.
> I think that Perl's build script need to build a standard Perl by
> default, without a single question. That will minimize the odds of
> encountering Perl 5.8 without threads, as we just saw.
> For the guys that want to speed up a little in the cost of throwing
> features, there should be a man page with a long-long and unfriendly
> list of build switches. Just to make sure that the one that tries to
> build a non-standard Perl really means it.
>

I might be missing something here, but isn't:

-------------8<-------------
sh Configure -de
make
make test
make install
------------->8-------------

Exactly this?

It's the recommended installation procedure under the INSTALL file
that ships with the perl source, and it doesn't ask you a single
question (at least not for me).

As for threading, the "-de" options just set the default, which is no
threads. As the config itself explains:

-------------------------8<-------------------------
Perl can be built to take advantage of threads on some systems.
To do so, Configure can be run with -Dusethreads.

Note that Perl built with threading support runs slightly slower
and uses more memory than plain Perl. The current implementation
is believed to be stable, but it is fairly new, and so should be
treated with caution.

If this doesn't make any sense to you, just accept the default 'n'.
Build a threading Perl? [n]
------------------------->8-------------------------

On the other hand, on my system, the defaults also added "threads" and
"threads::shared" to the list of "extensions that can be loaded
dynamically". I must confess my absolute ignorance here as I have no
idea whether there's a way (and "how") to load thread support
dynamically, or if the perl configuration just compiled the threads
modules for nothing, as I get:

$ ./perl -Ilib -Mthreads -E '1'
This Perl not built to support threads
Compilation failed in require.
BEGIN failed--compilation aborted.


Cheers,

-b (garu)


More information about the Padre-dev mailing list