2009/09/10

install perl module in redhat

Just found it is so easy to install a perl module using cpan in redhat.

login as root, enter the following command:

cpan


This will open a cpan shell and display the following message:

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled


cpan>

The you can install a perl mdule if you know the name,

cpan> install WordPress::Post

The name of perl module is case sensitive, so if you are not sure the name, you can try

cpan> i /wordpress/

It would tell you any module whose name has 'wordpress' in there.

No comments:

Post a Comment