LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-27-2007, 04:33 AM   #1
vadiml
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 19
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?


Thanks
Vadim
 
Old 04-28-2007, 02:30 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
On my FC4 that was installed by the perl pacakge.

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

I'd then reinstall that package:

rpm -ivh --force /var/cache/yum/updates-released/packages/perl-5.8.6-24.i386.rpm

This actually reinstalls all the files from the package not just the one you're missing but since it is the same package that shouldn't be a problem.
 
Old 04-28-2007, 05:43 PM   #3
vadiml
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 19
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
 
Old 04-28-2007, 07:50 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
Oopsy daisy - deleted /usr/lib/perl5/site_perl/ AcidRip no worky WoofDeF Linux - Software 1 03-30-2006 06:00 PM
including usr/local/lib directory Quest101 Linux - Software 3 01-01-2005 04:13 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
grep: /usr/lib/libglib-2.0.la: No such file or directory FirstTimeUser Linux - Software 9 10-15-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration