|Perl: the Markov chain saw|
Re: App::perlbrew - Compiling Perl with thread supportby 7stud (Deacon)
|on Jan 12, 2013 at 10:53 UTC||Need Help??|
Here is perlbrew(0.58) help, section "install":
COMMAND: INSTALL install options perl-<version> install options <version> Build and install the given version of perl. Version numbers usually look like "5.x.xx", or "perl-5.xx.x-RCx" for release candidates. The specified perl is downloaded from the offical CPAN website or from the mirror site configured before. To configure mirror site, invoke `mirror` command. install options perl-blead install options blead A special way to install the blead version of perl, which is downloaded from this specific URL regardless of mirror settings: http://perl5.git.perl.org/perl.git/snapshot/blead.tar.gz install options /path/to/perl/git/checkout/dir Build and install from the given git checkout dir. install options /path/to/perl-5.14.0.tar.gz Build and install from the given archive file. install options http://example.com/mirror/perl-5.12.3.tar.gz Build and install from the given URL. Supported URL schemes are "http://", "https://", "ftp://" and "file://". Options for "install" command: -f --force Force installation -j $n Parallel buildng and testing. ex. C<perlbrew install -j 5 perl-5.14.2> -n --notest Skip testing --as Install the given version of perl by a name. ex. C<perlbrew install perl-5.6.2 --as legacy-perl> -D,-U,-A Switches passed to perl Configure script. ex. C<perlbrew install perl-5.10.1 -D usemymalloc -U uselargefiles> --sitecustomize $filename Specify a file to be installed as sitecustomize.pl By default, all installations are configured after their name like this: sh Configure -de -Dprefix=$PERLBREW_ROOT/perls/<name>
Therefore, the command to install perl 5.16.0 with thread support and to give that perl the name "perl-5.16.0t" should be this:
And in fact, I tried that command on Mac OSX 10.6.8, and I was able to successfully install a perl named perl-5.16.0t:
And here's a test program:
To set perl-5.16.0t as the default when you start up a shell:
It's possible that the -f option for the perlbrew alias command is the same as for the install command. But in any case, options are optional--that is what the brackets around the option mean--so if you don't know what an option does, then don't use that option.
perlbrew help also says this:
The -v option isn't used to specify the perl version, so you can omit it.