This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
new perldelta
[perl5.git] / README.linux
CommitLineData
ffe25ee3
B
1# vim: syntax=pod
2
6452e86c
SP
3If you read this file _as_is_, just ignore the funny characters you
4see. It is written in the POD format (see pod/perlpod.pod) which is
5specifically designed to be readable as is.
6
7=head1 NAME
8
de2902a6 9perllinux - Perl version 5 on Linux systems
6452e86c
SP
10
11=head1 DESCRIPTION
12
13This document describes various features of Linux that will affect how Perl
14version 5 (hereafter just Perl) is compiled and/or runs.
15
9ffb8441
SF
16=head2 Deploying Perl on Linux
17
18Normally one can install F</usr/bin/perl> on Linux using your distribution's
19package manager (e.g: C<sudo apt-get install perl>, or
20C<sudo dnf install perl>). Note that sometimes one needs to install some
21extra system packages in order to be able to use CPAN frontends, and that
22messing with the system's perl is not always recommended. One can use
23L<perlbrew|https://perlbrew.pl/> to avoid such issues.
24
25Otherwise, perl should build fine on Linux using the mainstream compilers
26GCC and clang, while following the usual instructions.
27
6452e86c
SP
28=head2 Experimental Support for Sun Studio Compilers for Linux OS
29
f858446f 30Sun Microsystems has released a port of their Sun Studio compilers for
9ffb8441
SF
31Linux. As of May 2019, the last stable release took place on 2017, and one can
32buy support contracts for them.
6452e86c 33
9ffb8441
SF
34There are some special instructions for building Perl with Sun Studio on
35Linux. Following the normal C<Configure>, you have to run make as follows:
6452e86c
SP
36
37 LDLOADLIBS=-lc make
38
9ffb8441 39C<LDLOADLIBS> is an environment variable used by the linker to link
6452e86c
SP
40C</ext> modules to glibc. Currently, that environment variable is not getting
41populated by a combination of C<Config> entries and C<ExtUtil::MakeMaker>.
42While there may be a bug somewhere in Perl's configuration or
43C<ExtUtil::MakeMaker> causing the problem, the most likely cause is an
44incomplete understanding of Sun Studio by this author. Further investigation
45is needed to get this working better.
46
47=head1 AUTHOR
48
49Steve Peters <steve@fisharerojo.org>
50
8166b4e0
DB
51Please report any errors, updates, or suggestions to
52L<https://github.com/Perl/perl5/issues>.
6452e86c 53