Download Managing Linux Systems with Webmin

Transcript
Perl Modules in Webmin
245
27.2 Perl Modules in Webmin
Under the Others category in Webmin is a module called Perl Modules that can be used to view,
install, and remove Perl modules from your system. When you enter it, the main page lists all the
modules that are currently installed, as shown in Figure 27.1. For each module, the name, a short
description, installation date, and number of submodules is shown. Submodules are Webmin’s term
for Perl modules that are included in the distribution tar.gz file along with a primary module.
Because Perl behaves the same on all versions of UNIX, this Webmin module has the same
user interface and functionality on all operating systems. The only problem that you may
encounter on non-Linux systems is the lack of a C compiler, which is often needed when installing Perl modules. All versions of Linux include the gcc compiler as standard, but many commercial UNIX variants do not come with a free C compiler.
Figure 27.1 The Perl Modules main page.
27.3 Installing a Perl Module
If you need to install a new Perl module for use by Webmin or for developing your own scripts,
it can easily be done using this Webmin module. The steps to install a Perl module are:
1. At the bottom of the module’s main page is the installation form. It offers four options
for types of source from which to install a module in tar.gz distribution file format, but
the most common and useful is From CPAN. Just select it and enter the name of the
module (such as Net::Telnet) into the adjacent text field.