How to Install a Bundle for CPAN on CentOS

Save

Linux CentOS is fully compatible with the Perl computer programming language and capable of running all of Perl's many Comprehensive Perl Archive Network module bundles. Each bundle extends Perl's functionality and allows you to accomplish tasks such as interfacing with a specific database, making HTTP requests to websites and manipulating date and time settings. Although Perl is installed by default on CentOS, you may need to update the system's configuration to retrieve and compile CPAN bundles.

  • Open a new terminal window from your computer's window manager's programs menu if you changed the system's default behavior of immediately logging into a command terminal.

  • Type sudo yum update into the terminal, and then press Enter. This action updates the Yum package repository, which is necessary to install the latest version of the modules you may need.

  • Type sudo yum install gcc and press Enter to install the GNU C++ compiler, which is an integral part of a development system that isn't always present on some configurations. If it is already installed, the system will simply report that GCC is up to date.

  • Type cpan and press Enter to open the CPAN command line.

  • Type install Bundle::CPAN and press Enter to update the Bundle configuration to the most recent version.

  • Enter reload cpan to refresh the CPAN configuration.

  • Locate the name of the module or bundle you want to install from the Modules section of the CPAN website.

  • Type install Bundle::Name and then press Enter. Replace "Bundle::Name" with the name of the bundle, or module, you want to install, such as "install DateTime::TimeZone."

References

Promoted By Zergnet

Comments

Resources

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!