Perl F'd up after last stable update

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
Seems one of my clients had no issues with this script:
http://www.movabletype.org

But they sent me an e-mail today saying they are getting the following errors now when trying to log in to their admin panel.

Got an error: Unsupported driver MT::ObjectDriver::DBI::mysql: Can't
locate DBI.pm in @INC (@INC
contains: ./extlib ./lib /usr/lib/perl5/5.6.1/i386-
linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-
linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i38
6-
linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/
perl5/vendor_perl/5.6.1/i386-
linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .)
at lib/MT/ObjectDriver/DBI.pm line 9. BEGIN failed--compilation
aborted at lib/MT/ObjectDriver/DBI.pm line 9. Compilation failed in
require at lib/MT/ObjectDriver/DBI/mysql.pm line 9. BEGIN failed--
compilation aborted at lib/MT/ObjectDriver/DBI/mysql.pm line 9.
Compilation failed in require at (eval 3) line 1. BEGIN failed--
compilation aborted at (eval 3) line 1.

Now I posted this over at their forums located here:

http://www.movabletype.org/support/index.php?act=ST&f=19&t=29150&

And as he says seems my perl is screwed. I haven't touched anything so it draws me to the last stable version of cpanel.

Could someone run perl -V and tell me if they get the following:

@INC:
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl
One of the guys over at their forums said to do the following:

The error your user is reporting is that Perl can't find the DBI module anywhere in its include path. Executing "install Bundle::DBD::mysql" from the CPAN shell will build/install all the necessary modules.
So I did VIA WHM. Install a Perl Module and choose DBD::mysql but still no go.

Could anyone possible walk me through what might be the issue? Is the fact I'm running 2 perl version as he said might be causing the issue? And if so how the heck did they get in there? (cpanel?)

cPanel.net Support Ticket Number:
 

jcn

Well-Known Member
Sep 17, 2003
56
0
156
Has anyone else had this problem? Or, more importantly, has anyone updated to the newest STABLE and NOT hand this problem?

I would like to update my cPanel but have plenty of users who use MovableType and don't want them to be left without working installations.

XPerties, are you still having this problem? Was there any resolution?

jcn

cPanel.net Support Ticket Number:
 

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
Originally posted by jcn
Has anyone else had this problem? Or, more importantly, has anyone updated to the newest STABLE and NOT hand this problem?

I would like to update my cPanel but have plenty of users who use MovableType and don't want them to be left without working installations.

XPerties, are you still having this problem? Was there any resolution?

jcn

cPanel.net Support Ticket Number:
Yes, still have this issue. Whats funny is viewing the modules installed VIA cpanel shows all the correct modules for moveable text is installed.

I can not find this solution to the issue.

What is your reading when you run perl -V in SSH?

cPanel.net Support Ticket Number:
 

jcn

Well-Known Member
Sep 17, 2003
56
0
156
The relevant part of perl -V is

Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Sep 16 2003 12:28:20
@INC:
/usr/lib/perl5/5.6.1/i686-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i686-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
.

but I'm still running WHM 8.4.0 cPanel 8.4.0-R83.

I am afraid to upgrade if this actually causes problems. If it's something unrelated (ie, if something else has installed the old perl libraries on your system) then I'll go ahead and upgrade.

Maybe you should check that /usr/bin/perl and /usr/local/bin/perl are pointing at a 5.6.1 version of Perl...

cPanel.net Support Ticket Number:
 

pagedeveloping

Well-Known Member
Jun 11, 2003
219
0
166
New York
I had similar issues a while back and browsing through the search on this forum I found some tips and saved them in my notes:

This direct from a post NICK answered to and it worked for me. I can't remeber where I had found it but you can try the following to see if it will work for you as well.

SSH as root and run the following:

/scripts/perlinstaller CGI Bundle::DBD::mysql Digest::MD5

When that is finished you can run the next command

/usr/local/cpanel/bin/checkperlmodules

Hopes this helps your issue,

Regards,

Pete

I had to go back and disable Smilies......
 
Last edited:

jcn

Well-Known Member
Sep 17, 2003
56
0
156
At the risk of repeating myself, has anyone using MovableType (or other perl scripts I suppose) upgraded to the latest STABLE release without problem?

cPanel.net Support Ticket Number:
 

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
I upgraded to the latest Release version and it caused this problem. Then I upgraded to the latest Edge version and it fixed it. :D

I also found this solution on the forums but didn't get the chance to try it:

/usr/local/cpanel/bin/checkperlmodules
/scripts/cleanmd5
Thanks,
Michael
 

jcn

Well-Known Member
Sep 17, 2003
56
0
156
The problem mentioned originally in this thread was not related to the problem of 11/14/2003. The original cPanel upgrade did nothing bad to my perl installation. However, the upgrade last night totally blew up my perl install.

Reinstalling the modules fixed things, but there still might be broken modules on my system; I'm not really sure how to find out.