Koozali.org: home of the SME Server

/lib64 and /usr/lib64 symlinked... HELP!

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
/lib64 and /usr/lib64 symlinked... HELP!
« on: July 01, 2012, 06:59:29 AM »
Please help.
I have a full production server, and I haphazardly copied some code to install some other programs. Within that code was
Code: [Select]
ln -f -s /lib/* /usr/lib/
ln -f -s /lib64/* /usr/lib64/
Any way to repair without a fresh install?
My server takes a long time to shutdown, and it sometimes throws errors when installing contribs. Contribs install completely but
Code: [Select]
not well-formed (invalid token) at line 372, column 26, byte 11463 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 187

As always, any help is appreciated.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: /lib64 and /usr/lib64 symlinked... HELP!
« Reply #1 on: July 03, 2012, 08:09:34 PM »
Please help.
I have a full production server, and I haphazardly copied some code to install some other programs. Within that code was
Code: [Select]
ln -f -s /lib/* /usr/lib/
ln -f -s /lib64/* /usr/lib64/

You should name and shame that code, so that. hopefully, you can prevent somebody else from making the same mistake.

Quote
Any way to repair without a fresh install?

Not easily. You can use 'rpm -qf /usr/lib64/*' to identify symlinks in /usr/lib64 which are not owned by an rpm. You could then remove those symlinks.

That said, I don't know that those extra symlinks would cause any of your various problems.