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