PERLLINUX(1)

πŸ’– PERLLINUX πŸ’–

okay bestie, so this is the perllinux page from the Perl Programmers Reference Guide β€” it's the whole "Perl version 5 on Linux systems" situation, and it's lowkey essential reading if you're building or running Perl on Linux. ngl, it's a short one, but every line eats. 🐧✨


🌸 NAME 🌸

perllinux β€” Perl version 5 on Linux systems, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so this doc is literally here to walk you through the various features of Linux that will affect how Perl version 5 (and from here on out we're just gonna call it Perl, bestie, no need to be formal) gets compiled and/or runs. that's the whole vibe. 🫢

πŸŽ€ Deploying Perl on Linux πŸŽ€

normally you can just install /usr/bin/perl on Linux using your distribution's package manager, like:

sudo apt-get install perl

or

sudo dnf install perl

super chill, right? but wait β€” βœ‹ heads up: sometimes you need to install some extra system packages first in order to be able to use CPAN frontends. and also? messing with the system's perl is not always recommended. like, it's giving risky, ok? πŸ™ˆ

the fix? you can use perlbrew (https://perlbrew.pl/) to avoid such issues entirely. icon behavior honestly. πŸ’…

otherwise, perl should build fine on Linux using the mainstream compilers GCC and clang, while following the usual instructions. easy slay. πŸ”₯


🧚 Experimental Support for Sun Studio Compilers for Linux OS 🧚

so Sun Microsystems has released a port of their Sun Studio compilers for Linux. as of May 2019, the last stable release took place on 2017, and you can buy support contracts for them. iykyk. πŸ‘‘

there are some special instructions for building Perl with Sun Studio on Linux, and you need to hear this one. after you do the normal Configure, you have to run make like this:

LDLOADLIBS=-lc make

LDLOADLIBS is an environment variable used by the linker to link /ext modules to glibc. and the tea? currently, that environment variable is not getting populated by a combination of Config entries and ExtUtil::MakeMaker. 😭

so there may be a bug somewhere in Perl's configuration or ExtUtil::MakeMaker causing the problem β€” but honestly the most likely cause is an incomplete understanding of Sun Studio by this author. further investigation is needed to get this working better. not me being honest about it tho πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Steve Peters <steve@fisharerojo.org> β€” actual legend, wrote the whole thing. 🫢

please report any errors, updates, or suggestions to https://github.com/Perl/perl5/issues. they want your feedback fr fr. πŸ’Œ


and that's the page bestie!! 🌈 this one shipped as perl v5.42.3 and the date on it was 2026-08-03 β€” so like, keep that in mind when you're citing it, mwah πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from