%general-entities; ]> Building and installing perl modules Installing perl modules The various ways of building and Installing perl modules Most modules use a standard install, but some use a different method. Each module links to the appropriate method. You can also make an automated install, using CPAN to download any modular dependencies - details at the end. Standard Installation of Perl Modules Install Perl modules by running the following commands: For , first apply the required patch with: patch -Np1 -i ../Data-Uniqid-&Data-Uniqid-version;-disable_failing_test-1.patch Then, or for all other modules using the standard installation, proceed with: perl Makefile.PL && make && make test If the module is described as using the unsafe variant of the Standard Installation, (the use of the current directory in @INC was removed for security reasons in perl-5.26.0) you should change the perl invocation to: PERL_USE_UNSAFE_INC=1 && If, however, you are using the Auto Installation described below, that environment variable will be set whenever the cpan shell install is used. Now, as the root user: make install When reinstalling a Perl module, sometimes older versions of the module being reinstalled are in other directories specified in @INC. To delete all other versions of the module being reinstalled (not simply older ones) set the UNINST variable: make install UNINST=1 Installation of Perl Modules which use Build.PL Install Perl modules which use Build.PL by running the following commands: perl Build.PL && ./Build && ./Build test Now, as the root user: ./Build install (Alternate) Auto Installation of Perl Modules. There is an alternate way of installing the modules using the cpan shell install command. The command automatically downloads the source from the CPAN archive, extracts it, runs the compilation, testing and installation commands mentioned above, and removes the build source tree. You may still need to install dependent library packages before running the automated installation method. The first time you run cpan, you'll be prompted to enter some information regarding download locations and methods. This information is retained in files located in ~/.cpan. Start the cpan shell by issuing 'cpan' as the root user. Any module may now be installed from the cpan>  prompt with the command: install <Module::Name> For additional commands and help, issue 'help' from the cpan>  prompt. Alternatively, for scripted or non-interactive installations, use the following syntax as the root user to install one or more modules: cpan -i <Module1::Name> <Module2::Name> Review the cpan.1 man page for additional parameters you can pass to cpan on the command line.