Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: newburns on July 01, 2012, 06:59:29 AM

Title: /lib64 and /usr/lib64 symlinked... HELP!
Post by: newburns 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.
Title: Re: /lib64 and /usr/lib64 symlinked... HELP!
Post by: CharlieBrady 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.