How to restore /usr/lib/perl5/site_perl/5.8.6 directory on FC4
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to restore /usr/lib/perl5/site_perl/5.8.6 directory on FC4
Hello,
I've managed to rm usr/lib/perl5/site_perl/5.8.6 accidentally
on my FC4 server
Is there any way to repair( determine what is missing and reinstall) the missing files?
If you are caching packages you may be able to reinstall the missing files simply by reinstalling the perl package there:
Type "rpm -qf /usr/lib/site_perl/5.8.6" to see what package(s) installed this file (and presumably its subdirectories and files):
e.g.
perl-5.8.6-15
perl-5.8.6-24
Since I see two packages I would use the higher version (perl.5.8.6-24).
I'd then look in the cache directory for the rpm:
ls -l /var/cache/yum/updates-released/packages/perl-5.8.6-24*
-rw-r--r-- 1 root root 11848990 Mar 27 2006 /var/cache/yum/updates-released/packages/perl-5.8.6-24.i386.rpm
Thanks jlighter it did help,
the directories are back there however it seems it screwed somtehing in perl installation:
svk pull //local/wifo
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/vendor_perl/5.8.6/Class/Autouse.pm line 509.
Weak references are not implemented in the version of perl at /usr/lib/perl5/vendor_perl/5.8.6/PerlIO/via/dynamic.pm line 61
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.6/PerlIO/via/dynamic.pm line 61.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.6/SVK/XD.pm line 18.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.6/SVK/XD.pm line 18.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.6/Class/Autouse.pm line 384.
at /usr/bin/svk line 76
Do "rpm -qa |grep perl" to see what other perl packages you had. It may be you had some APAN stuff that needs to be reloaded on top of the base perl package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.