Can't locate Net/Aim.pm

This error is cropping up on a lot of new cPanel installs:

Can't locate Net/AIM.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /scripts /scripts /scripts /scripts /scripts /scripts)

Once I installed the net aim stuff I started to get a new error:

Can't locate Tie/IxHash.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /usr/local/cpanel /scripts /usr/local/cpanel /scripts /usr/local/cpanel /scripts /usr/local/cpanel) at /usr/local/cpanel/Cpanel/Form.pm line 16

Yet another error I was getting:

Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /scripts /scripts /scripts /scripts /scripts /scripts /scripts /scripts) at cPScript/Mysql.pm line 23.

Yes more errors:

Error while connecting to MySQL. Failover enacted.
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . /usr/local/cpanel /usr/local/cpanel) at (eval 4) line 3.

The following few commands will install all the perl modules to fix these errors up, at least it worked on my server.

perl -MCPAN -e shell
install Bundle::CPAN
reload cpan
install HTTP::Date
install Net::AIM::Connection
install Net::AIM
install Tie::IxHash
install DBI
install DBD::mysql

That should fix you up and let cPanel start to work correctly.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

perl modules on rhel

I don't know if you noticed this but on redhat, perl modules installed by rpm are installed in /usr/lib/perl5/vendor_perl and perl modules installed by cpan are installed in /usr/lib/perl5/site_perl, if you install a perl module rpm from redhat that has a dependency that you already have installed via cpan, redhat rpm will not find it, there may be somewhere you define paths, but I have resorted to compiling all my perl modules as rpms. I find its pretty easy to make minor edits to most any perl spec file from another perl module, i think i may have used dag wieers. google his name if you are not familiar.

Powered by Drupal - Theme created by Danger4k