These options, and many more, are explained in further detail below.
+If you're building perl from a git repository, you should also consult
+the documentation in pod/perlgit.pod for information on that special
+circumstance.
+
If you have problems, corrections, or questions, please see
L<"Reporting Problems"> below.
in the Perl language in the current release. Please see
pod/perldelta.pod for a description of what's changed. See your
installed copy of the perllocal.pod file for a (possibly incomplete)
-list of locally installed modules. Also see CPAN::autobundle for one
-way to make a "bundle" of your currently installed modules.
+list of locally installed modules. Also see the L<CPAN> module's
+C<autobundle> function for one way to make a "bundle" of your currently
+installed modules.
=head1 Run Configure
something like the following with the newly-built but not-yet-installed
./perl:
- cd t; ./perl -MTestInit misc/failing_test.t
+ ./perl -MTestInit t/misc/failing_test.t
or
=item Directories for the perl distribution
-By default, Configure will use the following directories for 5.15.6.
+By default, Configure will use the following directories for 5.17.6.
$version is the full perl version number, including subversion, e.g.
5.12.3, and $archname is a string like sun4-sunos,
determined by Configure. The full definitions of all Configure
directory, and has to include architecture-dependent directories separately,
eg.
- sh Configure -Dinc_version_list="5.15.6/x86_64-linux 5.14.0" ...
+ sh Configure -Dinc_version_list="5.16.0/x86_64-linux 5.16.0" ...
When using the newer perl, you can add these paths again in the
PERL5LIB environment variable or with perl's -I runtime option.
If you are using a shared libperl, see the warnings about multiple
versions of perl under L<Building a shared Perl library>.
-Note that a perl built with -DDEBUGGING will be bigger and will run more
-slowly than a standard perl.
+Note that a perl built with -DDEBUGGING will be much bigger and will run
+much, much more slowly than a standard perl.
=head2 DTrace support
If you have any additional changes to make to the C compiler command
line, they can be made in cflags.SH. For instance, to turn off the
-optimizer on toke.c, find the line in the switch structure for
-toke.c and put the command optimize='-g' before the ;; . You
-can also edit cflags.SH directly, but beware that your changes will be
-lost the next time you run Configure.
+optimizer on toke.c, find the switch structure marked 'or customize here',
+and add a line for toke.c ahead of the catch-all *) so that it now reads:
+
+ : or customize here
+
+ case "$file" in
+ toke) optimize='-g' ;;
+ *) ;;
+
+You should not edit the generated file cflags directly, as your changes will
+be lost the next time you run Configure, or if you edit config.sh.
To explore various ways of changing ccflags from within a hint file,
see the file hints/README.hints.
Perl can be cross-compiled. It is just not trivial, cross-compilation
rarely is. Perl is routinely cross-compiled for many platforms (as of
-June 2005 at least PocketPC aka WinCE, Open Zaurus, EPOC, Symbian, and
+June 2005 at least PocketPC aka WinCE, Open Zaurus, Symbian, and
the IBM OS/400). These platforms are known as the B<target> platforms,
while the systems where the compilation takes place are the B<host>
platforms.
Cross/README
-=item EPOC
-
-README.epoc
-
=item Symbian
README.symbian
This will run the regression tests on the perl you just made. If
'make test' doesn't say "All tests successful" then something went
-wrong. See the file t/README in the t subdirectory.
+wrong.
Note that you can't run the tests in background if this disables
opening of /dev/tty. You can use 'make test-notty' in that case but
=head2 What if make test doesn't work?
If make test bombs out, just cd to the t directory and run ./TEST
-by hand to see if it makes any difference. If individual tests
-bomb, you can run them by hand, e.g.,
+by hand to see if it makes any difference.
- ./perl -MTestInit t/op/groups.t
-
-Another way to get more detailed information about failed tests and
-individual subtests is to cd to the t directory and run
+One way to get more detailed information about failed tests and
+individual subtests is to run the harness from the t directory:
cd t ; ./perl harness <list of tests>
complicated constructs). If no list of tests is provided, harness
will run all tests.
+If individual tests fail, you can often run them by hand (from the main
+perl directory), e.g.,
+
+ ./perl -MTestInit t/op/groups.t
+
You should also read the individual tests to see if there are any helpful
comments that apply to your system. You may also need to setup your
shared library path if you get errors like:
/sbin/loader: Fatal Error: cannot map libperl.so
+The file t/README in the t subdirectory contains more information about
+running and modifying tests.
+
See L</"Building a shared Perl library"> earlier in this document.
=over 4
Try stopping other jobs on the system and then running the test by itself:
- cd t; ./perl -MTestInit op/pat.t
+ ./perl -MTestInit t/op/pat.t
to see if you have any better luck. If your perl still fails this
test, it does not necessarily mean you have a broken perl. This test
perl,
perl5.n.n where 5.n.n is the current release number. This
will be a link to perl.
- suidperl,
- sperl5.n.n If you requested setuid emulation.
a2p awk-to-perl translator.
scripts
--htmlroot=/perl/nmanual \
--splithead=pod/perlipc \
--splititem=pod/perlfunc \
- --libpods=perlfunc:perlguts:perlvar:perlrun:perlop \
--verbose
See the documentation in installhtml for more details. It can take
=head1 Coexistence with earlier versions of perl 5
-Perl 5.15 is not binary compatible with earlier versions of Perl.
+Perl 5.17.6 is not binary compatible with earlier versions of Perl.
In other words, you will have to recompile your XS modules.
In general, you can usually safely upgrade from one version of Perl (e.g.
libraries after 5.6.0, but not for executables. TODO?) One convenient
way to do this is by using a separate prefix for each version, such as
- sh Configure -Dprefix=/opt/perl5.15.6
+ sh Configure -Dprefix=/opt/perl5.17.6
-and adding /opt/perl5.15.6/bin to the shell PATH variable. Such users
+and adding /opt/perl5.17.6/bin to the shell PATH variable. Such users
may also wish to add a symbolic link /usr/local/bin/perl so that
scripts can still start with #!/usr/local/bin/perl.
subversions may not have all the compatibility wrinkles ironed out
yet.
-=head2 Upgrading from 5.15.5 or earlier
+=head2 Upgrading from 5.17.5 or earlier
-B<Perl 5.15.6 is binary incompatible with Perl 5.15.5 and any earlier
-Perl release.> Perl modules having binary parts
+B<Perl 5.17.6 may not be binary compatible with Perl 5.17.5 or
+earlier Perl releases.> Perl modules having binary parts
(meaning that a C compiler is used) will have to be recompiled to be
-used with 5.15.6. If you find you do need to rebuild an extension with
-5.15.6, you may safely do so without disturbing the older
+used with 5.17.6. If you find you do need to rebuild an extension with
+5.17.6, you may safely do so without disturbing the older
installations. (See L<"Coexistence with earlier versions of perl 5">
above.)
print("$f\n");
}
-in Linux is as follows (under $Config{prefix}):
+in Linux with perl-5.17.6 is as follows (under $Config{prefix}):
./bin/perl
- ./lib/perl5/5.9.3/strict.pm
- ./lib/perl5/5.9.3/warnings.pm
- ./lib/perl5/5.9.3/i686-linux/File/Glob.pm
- ./lib/perl5/5.9.3/i686-linux/XSLoader.pm
- ./lib/perl5/5.9.3/i686-linux/auto/File/Glob/Glob.so
+ ./lib/perl5/5.17.6/strict.pm
+ ./lib/perl5/5.17.6/warnings.pm
+ ./lib/perl5/5.17.6/i686-linux/File/Glob.pm
+ ./lib/perl5/5.17.6/feature.pm
+ ./lib/perl5/5.17.6/XSLoader.pm
+ ./lib/perl5/5.17.6/i686-linux/auto/File/Glob/Glob.so
-Secondly, Debian perl-base package contains the following files,
-size about 1.9MB in its i386 version:
+Secondly, for perl-5.10.1, the Debian perl-base package contains 591 files,
+(of which 510 are for lib/unicore) totaling about 3.5MB in its i386 version.
+Omitting the lib/unicore/* files for brevity, the remaining files are:
/usr/bin/perl
- /usr/bin/perl5.8.4
- /usr/lib/perl/5.8
- /usr/lib/perl/5.8.4/B.pm
- /usr/lib/perl/5.8.4/B/Deparse.pm
- /usr/lib/perl/5.8.4/Config.pm
- /usr/lib/perl/5.8.4/Cwd.pm
- /usr/lib/perl/5.8.4/Data/Dumper.pm
- /usr/lib/perl/5.8.4/DynaLoader.pm
- /usr/lib/perl/5.8.4/Errno.pm
- /usr/lib/perl/5.8.4/Fcntl.pm
- /usr/lib/perl/5.8.4/File/Glob.pm
- /usr/lib/perl/5.8.4/IO.pm
- /usr/lib/perl/5.8.4/IO/File.pm
- /usr/lib/perl/5.8.4/IO/Handle.pm
- /usr/lib/perl/5.8.4/IO/Pipe.pm
- /usr/lib/perl/5.8.4/IO/Seekable.pm
- /usr/lib/perl/5.8.4/IO/Select.pm
- /usr/lib/perl/5.8.4/IO/Socket.pm
- /usr/lib/perl/5.8.4/POSIX.pm
- /usr/lib/perl/5.8.4/Socket.pm
- /usr/lib/perl/5.8.4/XSLoader.pm
- /usr/lib/perl/5.8.4/auto/Cwd/Cwd.bs
- /usr/lib/perl/5.8.4/auto/Cwd/Cwd.so
- /usr/lib/perl/5.8.4/auto/Data/Dumper/Dumper.bs
- /usr/lib/perl/5.8.4/auto/Data/Dumper/Dumper.so
- /usr/lib/perl/5.8.4/auto/DynaLoader/DynaLoader.a
- /usr/lib/perl/5.8.4/auto/DynaLoader/autosplit.ix
- /usr/lib/perl/5.8.4/auto/DynaLoader/dl_expandspec.al
- /usr/lib/perl/5.8.4/auto/DynaLoader/dl_find_symbol_anywhere.al
- /usr/lib/perl/5.8.4/auto/DynaLoader/dl_findfile.al
- /usr/lib/perl/5.8.4/auto/DynaLoader/extralibs.ld
- /usr/lib/perl/5.8.4/auto/Fcntl/Fcntl.bs
- /usr/lib/perl/5.8.4/auto/Fcntl/Fcntl.so
- /usr/lib/perl/5.8.4/auto/File/Glob/Glob.bs
- /usr/lib/perl/5.8.4/auto/File/Glob/Glob.so
- /usr/lib/perl/5.8.4/auto/IO/IO.bs
- /usr/lib/perl/5.8.4/auto/IO/IO.so
- /usr/lib/perl/5.8.4/auto/POSIX/POSIX.bs
- /usr/lib/perl/5.8.4/auto/POSIX/POSIX.so
- /usr/lib/perl/5.8.4/auto/POSIX/autosplit.ix
- /usr/lib/perl/5.8.4/auto/POSIX/load_imports.al
- /usr/lib/perl/5.8.4/auto/Socket/Socket.bs
- /usr/lib/perl/5.8.4/auto/Socket/Socket.so
- /usr/lib/perl/5.8.4/lib.pm
- /usr/lib/perl/5.8.4/re.pm
- /usr/share/doc/perl-base
+ /usr/bin/perl5.10.1
+ /usr/lib/perl/5.10.1/Config.pm
+ /usr/lib/perl/5.10.1/Config_git.pl
+ /usr/lib/perl/5.10.1/Config_heavy.pl
+ /usr/lib/perl/5.10.1/Cwd.pm
+ /usr/lib/perl/5.10.1/DynaLoader.pm
+ /usr/lib/perl/5.10.1/Errno.pm
+ /usr/lib/perl/5.10.1/Fcntl.pm
+ /usr/lib/perl/5.10.1/File/Glob.pm
+ /usr/lib/perl/5.10.1/Hash/Util.pm
+ /usr/lib/perl/5.10.1/IO.pm
+ /usr/lib/perl/5.10.1/IO/File.pm
+ /usr/lib/perl/5.10.1/IO/Handle.pm
+ /usr/lib/perl/5.10.1/IO/Pipe.pm
+ /usr/lib/perl/5.10.1/IO/Seekable.pm
+ /usr/lib/perl/5.10.1/IO/Select.pm
+ /usr/lib/perl/5.10.1/IO/Socket.pm
+ /usr/lib/perl/5.10.1/IO/Socket/INET.pm
+ /usr/lib/perl/5.10.1/IO/Socket/UNIX.pm
+ /usr/lib/perl/5.10.1/List/Util.pm
+ /usr/lib/perl/5.10.1/POSIX.pm
+ /usr/lib/perl/5.10.1/Scalar/Util.pm
+ /usr/lib/perl/5.10.1/Socket.pm
+ /usr/lib/perl/5.10.1/XSLoader.pm
+ /usr/lib/perl/5.10.1/auto/Cwd/Cwd.so
+ /usr/lib/perl/5.10.1/auto/DynaLoader/autosplit.ix
+ /usr/lib/perl/5.10.1/auto/DynaLoader/dl_expandspec.al
+ /usr/lib/perl/5.10.1/auto/DynaLoader/dl_find_symbol_anywhere.al
+ /usr/lib/perl/5.10.1/auto/DynaLoader/dl_findfile.al
+ /usr/lib/perl/5.10.1/auto/Fcntl/Fcntl.so
+ /usr/lib/perl/5.10.1/auto/File/Glob/Glob.so
+ /usr/lib/perl/5.10.1/auto/Hash/Util/Util.so
+ /usr/lib/perl/5.10.1/auto/IO/IO.so
+ /usr/lib/perl/5.10.1/auto/List/Util/Util.so
+ /usr/lib/perl/5.10.1/auto/POSIX/POSIX.so
+ /usr/lib/perl/5.10.1/auto/POSIX/autosplit.ix
+ /usr/lib/perl/5.10.1/auto/POSIX/load_imports.al
+ /usr/lib/perl/5.10.1/auto/Socket/Socket.so
+ /usr/lib/perl/5.10.1/lib.pm
+ /usr/lib/perl/5.10.1/re.pm
/usr/share/doc/perl/AUTHORS.gz
/usr/share/doc/perl/Documentation
- /usr/share/doc/perl/README.Debian.gz
+ /usr/share/doc/perl/README.Debian
/usr/share/doc/perl/changelog.Debian.gz
/usr/share/doc/perl/copyright
+ /usr/share/lintian/overrides/perl-base
/usr/share/man/man1/perl.1.gz
- /usr/share/perl/5.8
- /usr/share/perl/5.8.4/AutoLoader.pm
- /usr/share/perl/5.8.4/Carp.pm
- /usr/share/perl/5.8.4/Carp/Heavy.pm
- /usr/share/perl/5.8.4/Exporter.pm
- /usr/share/perl/5.8.4/Exporter/Heavy.pm
- /usr/share/perl/5.8.4/File/Spec.pm
- /usr/share/perl/5.8.4/File/Spec/Unix.pm
- /usr/share/perl/5.8.4/FileHandle.pm
- /usr/share/perl/5.8.4/Getopt/Long.pm
- /usr/share/perl/5.8.4/IO/Socket/INET.pm
- /usr/share/perl/5.8.4/IO/Socket/UNIX.pm
- /usr/share/perl/5.8.4/IPC/Open2.pm
- /usr/share/perl/5.8.4/IPC/Open3.pm
- /usr/share/perl/5.8.4/List/Util.pm
- /usr/share/perl/5.8.4/Scalar/Util.pm
- /usr/share/perl/5.8.4/SelectSaver.pm
- /usr/share/perl/5.8.4/Symbol.pm
- /usr/share/perl/5.8.4/Text/ParseWords.pm
- /usr/share/perl/5.8.4/Text/Tabs.pm
- /usr/share/perl/5.8.4/Text/Wrap.pm
- /usr/share/perl/5.8.4/attributes.pm
- /usr/share/perl/5.8.4/base.pm
- /usr/share/perl/5.8.4/bytes.pm
- /usr/share/perl/5.8.4/bytes_heavy.pl
- /usr/share/perl/5.8.4/constant.pm
- /usr/share/perl/5.8.4/fields.pm
- /usr/share/perl/5.8.4/integer.pm
- /usr/share/perl/5.8.4/locale.pm
- /usr/share/perl/5.8.4/overload.pm
- /usr/share/perl/5.8.4/strict.pm
- /usr/share/perl/5.8.4/utf8.pm
- /usr/share/perl/5.8.4/utf8_heavy.pl
- /usr/share/perl/5.8.4/vars.pm
- /usr/share/perl/5.8.4/warnings.pm
- /usr/share/perl/5.8.4/warnings/register.pm
+ /usr/share/man/man1/perl5.10.1.1.gz
+ /usr/share/perl/5.10.1/AutoLoader.pm
+ /usr/share/perl/5.10.1/Carp.pm
+ /usr/share/perl/5.10.1/Carp/Heavy.pm
+ /usr/share/perl/5.10.1/Exporter.pm
+ /usr/share/perl/5.10.1/Exporter/Heavy.pm
+ /usr/share/perl/5.10.1/File/Spec.pm
+ /usr/share/perl/5.10.1/File/Spec/Unix.pm
+ /usr/share/perl/5.10.1/FileHandle.pm
+ /usr/share/perl/5.10.1/Getopt/Long.pm
+ /usr/share/perl/5.10.1/IPC/Open2.pm
+ /usr/share/perl/5.10.1/IPC/Open3.pm
+ /usr/share/perl/5.10.1/SelectSaver.pm
+ /usr/share/perl/5.10.1/Symbol.pm
+ /usr/share/perl/5.10.1/Text/ParseWords.pm
+ /usr/share/perl/5.10.1/Text/Tabs.pm
+ /usr/share/perl/5.10.1/Text/Wrap.pm
+ /usr/share/perl/5.10.1/Tie/Hash.pm
+ /usr/share/perl/5.10.1/attributes.pm
+ /usr/share/perl/5.10.1/base.pm
+ /usr/share/perl/5.10.1/bytes.pm
+ /usr/share/perl/5.10.1/bytes_heavy.pl
+ /usr/share/perl/5.10.1/constant.pm
+ /usr/share/perl/5.10.1/fields.pm
+ /usr/share/perl/5.10.1/integer.pm
+ /usr/share/perl/5.10.1/locale.pm
+ /usr/share/perl/5.10.1/overload.pm
+ /usr/share/perl/5.10.1/strict.pm
+ /usr/share/perl/5.10.1/unicore/*
+ /usr/share/perl/5.10.1/utf8.pm
+ /usr/share/perl/5.10.1/utf8_heavy.pl
+ /usr/share/perl/5.10.1/vars.pm
+ /usr/share/perl/5.10.1/warnings.pm
+ /usr/share/perl/5.10.1/warnings/register.pm
A nice trick to find out the minimal set of Perl library files you will
need to run a Perl program is