Perl is a programming language, as powerful as C, and easy to use. However, Perl comes with fewer modules. Sometimes you need to download Perl modules from CPAN. How to install Perl from CPAN in Linux system operation? What about the module? Let's take a look at it with Xiaobian.
You can find the person you want any Perl modules from CPAN. Once you know the name of the Perl module you want to install (for example: (HTML::Template), you can install them as follows.
First, make sure your computer has C compiler installed. (for example: GCC compiler). Because most Perl modules are written in Perl, some use C to implement the underlying layer and then use XS language to handle the interaction. So you must install the Linux C development environment. Br>
Next, open a CPAN interactive interpreter and create and install a Perl module in the following way
$ sudo perl -MCPAN -e shell
cpan install HTML ::Template
Or use this method to
$ sudo perl -MCPAN -e ‘install HTML::Template’
If the above command is given “Can‘t locate CPAN.pm in @INC“'s error message, you first thought that you should use the standard Linux package manager command to install CPAN
For CentOS, Fedora or RHEL:
$ sudo yum -y insta Ll perl-CPAN
For Ubuntu and Debian:
$ sudo apt-get install perl-modules
You should now be able to manage other Perl with the perl -MPCAN command Modules.
Considering that some people will use proxy servers, they may have the need to use CPAN on the proxy server. You can use CPAN's console to configure your proxy server
$ sudo perl -MCPAN -e shell
cpan o conf init /proxy/
After the above command is executed, you will be asked to set up your proxy server. Finally, the system will let You can confirm whether your configuration is complete.
The above is the introduction of the Perl module on Linux CPAN. Because there are more Perl modules on CPAN, you can choose the Perl module you need to install.
Linux system The full name of Go language is golang, which is a programming development language. Th
After installing CentOS 5.5 system, some people cant access the Internet. After tes
In Linux systems, route forwarding refers to a protocol in which signals are transf
In Linux system operation, if you encounter unfamiliar words, you will look up the
Little-known Unix command inventory
What should I do if the GRUB boot error occurs when CentOS is booting?
How to mount/uninstall USB devices using commands under Linux
Two ways to speed up the copying speed of Linux files
Ubuntu 12.04 system boot space is insufficient to delete the old kernel
How Linux uses the kill command to force a process to terminate
How to install Guake terminal to Ubuntu system
How to brush the original Debian system in the set-top box
Linux method of creating SVN repository through shell scripts
What should I do if the Ubuntu login screen resolution is too high?
How Linux cracks root password in single-user mode
Linux beginners need to understand the Bash command operation skills to share
What should I do with the Windows 7 system splash screen? Solution list
What should I do if the win7 system fails to install IE10 browser?
Win10 notebook press the power button can not shut down how to solve?
The biggest challenge is the emergency plan when the system has problems
Vsftpd file transfer server build method
How does Win10 change the disk size? How to change the disk size of Win10
How does Win8 system force the installation of unsigned drivers?