It looks like most, if not all, of your first paragraph is based on an assumption that I have completed (or at least attempted) these steps.
Oops yeah, thought you were listing the steps that lead to the "incorrect" output at the end. Aside from the "i" everything looks fine. (I've never created an alias before, so I'm just assuming there.)
See the INSTALL file in the root directory of the Perl distribution for info on common configuration items. You can find the distributions on CPAN: perl. (The other monk gave a link to the very very latest version of the file, which might not be accurate for the version of Perl you are installing.)
Some tweaks aren't documented, though. You'd only know it's even possible to change them by looking at the code itself, though. e.g. I use -DPERL_SUB_DEPTH_WARN=1000 to reduce the risk of warnings when dealing with deep trees.
My perlbrew install wrapper:
#!/usr/bin/env perl
# install_perl 5.x.y
# install_perl 5.x.yd Build with debug symbols (-g)
# install_perl 5.x.yt Build with thread support
# install_perl 5.x.ydt Build with debug symbols (-g) and thread supp
+ort
use strict;
use warnings;
( my ($build) = @ARGV ) == 1
or die;
my $ccache = $ENV{CCACHE} || ( `which ccache` ? 'ccache'
+ : '' );
my $perlbrew_root = $ENV{PERLBREW_ROOT} || "$ENV{HOME}/perl5/perlbrew"
+;
unlink("$perlbrew_root/build.log");
my $version = $build;
my $threaded = $version =~ s/t\z//;
my $debug = $version =~ s/d\z//;
my @args;
push @args, "-v";
push @args, $version;
push @args, "--as=$build";
push @args, "-DPERL_SUB_DEPTH_WARN=1000";
push @args, "-Dcc=$ccache cc" if $ccache;
push @args, "-Doptimize=-g" if $debug;
push @args, "-Dusethreads" if $threaded;
exec("perlbrew", "install", @args)
or die $!;
(ccache is probably of no benefit, but I got in the habit of using it when bisecting.)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.