Install CPAN’s Perl Module in openSUSE 11.x

Several days ago I had a chance to work with a Perl application again. Luckily, this application needs several Perl modules to be able to work.

The easiest way to install Perl modules is through CPAN. Fortunately there are several software packages that are available to help you working with CPAN. In openSUSE, the helper packages are :

After downloading them, I went to install those packages using the rpm :

# rpm -Uvh cpanm-1.5002-1.1.noarch.rpm perl-App-cpanminus-1.5002-1.1.x86_64.rpm
warning: cpanm-1.5002-1.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID dcef338c: NOKEY

Preparing... ########################################### [100%]

1:perl-App-cpanminus ########################################### [ 50%]
2:cpanm ########################################### [100%]

Next, to install a Perl module, just use the following command (you need to run this command as “root“) :

cpanm <module_name>

For example, if I want to install a Perl module named Excel::Writer::XLSX here is the command to do it :

cpanm Excel::Writer::XLSX

--> Working on Excel::Writer::XLSX
Fetching http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Excel-Writer-XLSX-0.34.tar.gz ... OK

Configuring Excel-Writer-XLSX-0.34 ... OK
Building and testing Excel-Writer-XLSX-0.34 ... OK
Successfully installed Excel-Writer-XLSX-0.34
1 distribution installed

That’s it for today’s article. See you and take care.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s