Steps to install Perl module in cPanel
Step 1. First export the following (replace username with the actual user):
export PERL_MB_OPT='--install_base /home/username/perl5'
export PERL_MM_OPT='INSTALL_BASE=/home/username/perl5'
export PERL5LIB='/home/username/perl5/lib/perl5/i386-linux:/home/username/perl5/lib/perl5'
export PATH="/home/username/perl5/bin:$PATH"
Step 2. Then add those to the /home/username/.bashrc
Step 3. Download the Module's file from the cpan website.
Step 4. Untar it
Step 5. Run: perl Makefile.pl && make && make install
Step 6. chown installed files as necessary.
Comments
Post a Comment