Help - Search - Members - Calendar
Full Version: Perl broken.
The Planet Forums > Control Panels > Plesk
angryadmin
All of a sudden none of my perl scripts are working, and I am getting errors like:
Can't locate vars.pm

even though I haven't changed anything???


I have tried `up2date -i --force perl` but it didn't do anything. I need to somehow reinstall perl.
agruetz
Just curious have you checked the HD? Things do not typically just stop working. Are you finding any other error message?
angryadmin
This message appeared after running fsck. So it obviously removed some files from perl, but how do I put them back?
agruetz
You could check the lost+found dir and see if they some how got dropped in there by fsck. But the simplest way would probally be to uninstall perl and reinstall the exact same perl version.
angryadmin
How do you uninstall perl? I must be doing something wrong.
agruetz
rpm -e the perl files. But this could be dangerous and break other things as well. But in theory you should be able to rpm -e perl and then up2date perl and install it again and everything should be good.
angryadmin
I tried that but I get tons of these errors when trying to uninstall perl and it of course doesn't uninstall:

perl(POSIX) is needed by (installed) automake17-1.7.9-5.noarch
perl(POSIX) is needed by (installed) mod_perl-1.99_16-4.i386
perl(POSIX) is needed by (installed) autoconf-2.59-5.noarch
perl(POSIX) is needed by (installed) automake16-1.6.3-5.noarch
perl(POSIX) is needed by (installed) spamassassin-3.0.6-1.el4.i386
angryadmin
Ahh, ended up doing a:

rpm -e --nodeps perl

Then running up2date, all better now.

icon_smile.gif

Thanks so much for your help!!
agruetz
Yea I was going to tell you to read the manual. Glad I could be of help. My control panel of expertise icon_wink.gif.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.