Install Perl modules in cPanel server
While installing the Perl modules in cPanel, you might get the following error:
Checking C compiler....Could not locate an executable "cc" binary....Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler. Please repair the C compiler and try again.
To overcome this situation and install Perl modules like "Net::SMTP::TLS", you need to install it manually in the server. Please follow the steps mentioned below:
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 the above lines mentioned in Step 1 to the /home/username/.bashrc
Step 3. Download the Module's file from the following cpan website:
http://search.cpan.org/~awestholm/Net-SMTP-TLS-0.12/lib/Net/SMTP/TLS.pm
Step 4. Untar it
Step 5. Run:
$ perl Makefile.pl && make && make install
Step 6. chown installed files as necessary
Now login to your cPanel and check the module in "Perl Modules" section. Its installed now. :)
Checking C compiler....Could not locate an executable "cc" binary....Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler. Please repair the C compiler and try again.
To overcome this situation and install Perl modules like "Net::SMTP::TLS", you need to install it manually in the server. Please follow the steps mentioned below:
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 the above lines mentioned in Step 1 to the /home/username/.bashrc
Step 3. Download the Module's file from the following cpan website:
http://search.cpan.org/~awestholm/Net-SMTP-TLS-0.12/lib/Net/SMTP/TLS.pm
Step 4. Untar it
Step 5. Run:
$ perl Makefile.pl && make && make install
Step 6. chown installed files as necessary
Now login to your cPanel and check the module in "Perl Modules" section. Its installed now. :)
Comments
Post a Comment