We help IT Professionals succeed at work.

YUM Update - Broke PERL

Fatlog
Fatlog asked
on
824 Views
Last Modified: 2013-12-16
hi,

am a bit of a newb to linux so apologies!
i have a centos box and made some additions using 'yum'. all worked fine. installed mysql-server, webmin, cvs etc... and they all worked fine. the only issue i had was the repository version of PHP was 4.3.x and i needed 5.x.

after some searching i found that by enabling the 'centosplus' repository and running yum update again i could update the other various components of my server including PHP. as you are probably saying, this was a bad idea!

PERL was also updated and now various parts of Webmin are non-functional. i cant get into apache, cron, file manager etc... also i presume if i were to restart the machine apache probably wouldn't start up again.

so is this fixable? can i rollback the PERL module in some way?

this is the error i get...

Error - Perl execution failed
Can't locate File/Glob.pm in @INC (@INC contains: /usr/libexec/webmin /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./apache-lib.pl line 336.
BEGIN failed--compilation aborted at ./apache-lib.pl line 336.
Compilation failed in require at /usr/libexec/webmin/apache/index.cgi line 6.

thanks
Comment
Watch Question

Take a look at using rpm with the rollback option.

I'm not sure if you will be able to do this on your system, usually this option is configured with yum/rpm in the config and is not enabled by default.

You may need to remove the package and re-install the correct version.

Take a look at these as well.
http://www.vincentverhagen.nl/2007/12/10/how-to-roll-back-packages-on-centos-5-rhel-5/
http://blog.kagesenshi.org/2008/01/rpm-package-rollback.html
http://www.linuxweblog.com/node/213

Author

Commented:
had a look at it and it looks like it is expecting perl 5.5.5 and yum updated to 5.8.8. was looking into the rollback option but like you said its not enabled by default so i've already gone too far!

do you know if YUM relies on PERL? dont want to go down the route of removing PERL only to find that yum wont work anymore.

also, is it not possible to the various modules to use the new version of perl???
am a little surprised that the modules are not robust enough to dynamically pick up what version of PERL is running

thanks

Author

Commented:
sorry. it is expecting PERL 5.8.5 and 5.8.8 is running
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
the problem seems to be that various modules within my system seem to have been compiled with a specific version of perl. so for example apache is looking for this version of perl. apache is running at the moment but if i were to restart the server apache wouldn't start as it wouldn't be able to find perl.

do you know where it is hard-coded that apache looks for a certain version?

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.