Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Replicate Perl setup (Building and Installing Perl References)

by eyepopslikeamosquito (Archbishop)
on Dec 11, 2021 at 00:43 UTC ( [id://11139568]=note: print w/replies, xml ) Need Help??


in reply to Replicate Perl setup

See here for one primitive way to do this type of thing. Valuing reliability and lower support costs over flexibility, we installed our version of Perl, along with our stable set of CPAN modules, on many different customer machines -- without affecting other versions of Perl that may be installed on their system, and without requiring root permissions.

BTW, my manager back then had previously worked at Microsoft, where a broken build cut onto millions of CDs was a total disaster ... their build team became paranoid, going to incredible lengths to avoid breaking the build; they'd even experienced cases where simply installing an OS patch broke their build! ... so their build machines were quarantined from the network, with only the build team allowed to touch them.

Reference

References Added Later

Like Fletch and stevieb, I strongly prefer to leave the system perl alone, instead building my own perl (as non-root) that I can safely control, and experiment with, and install CPAN modules to, without risking breaking my Unix system. Conversely, Fletch notes that relying on the system perl couples you tightly to the OS' upgrade schedule, for both the language and CPAN modules ... so a "harmless" OS upgrade can potentially break your mission-critical systems, if they are using the system perl.

  • Debugger issue solved (two years ago) by talexb (2024) - interesting responses from hippo (if paranoid about system perl updates breaking your app, go the whole hog and containerise your perl and applications) and haj (Ubuntu Perl does apply CVE-related patches)

  • Homebrew (package manager) (wikipedia) - Homebrew (written in Ruby) is a free and open-source software package management system that simplifies the installation of software on Apple's macOS, as well as Linux

Examples of installing a custom Perl:

From Re: Perl installation on Ubuntu and/or Mac OS by ikegami, to install the system Perl and Tk on Ubuntu:

sudo apt install perl perl-tk

See APT (software) (wikipedia) and apt (Advanced Packaging Tool) at Ubuntu package management (and this node which uses the apt-get command) for more details.

You could also install your own Perl using perlbrew (see App::perlbrew):

curl -L https://install.perlbrew.pl | bash perlbrew install 5.40.0 cpan Tk

Building Perl Securely

Examples of building Perl securely from source:

Windows and Strawberry Perl

  • Strawberry Perl (wikipedia)
  • Mingw-w64 (wikipedia) - gcc-based C/C++ compiler used by Strawberry Perl (Note: MSYS2 ("minimal system 2") is a software distribution and a development platform for Microsoft Windows, based on Mingw-w64 and Cygwin ... MSYS2 and its bash environment is used by Git)
  • Cygwin (wikipedia) - a Unix-like environment and command-line interface for Microsoft Windows (uses cross-compilers from Mingw-w64 project)
  • Strawberry Perl (official site)
  • Strawberry Perl (github)

Portable Perl

Historic Perl

On CPAN

  • Perl::Dist::APPerl - Actually Portable Perl (APPerl) is a distribution of Perl the runs on several x86_64 operating systems via the same binary. It builds to a single binary with perl modules packed inside of it.
  • Portable - Perl on a Stick (by Adam Kennedy, unfinished)

PM Nodes

Platform-Specific perldoc Notes

Containerization

See: Cloud/Virtualization/Container References section at Re: "Magic tools" that take the fun away (Releng/DevOps/Cloud/Virtualization/Container/Server References)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139568]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2026-02-14 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.