Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-12-2003, 03:14 PM   #1
LQ Newbie
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
Restoring /lib directory?


Thank you for your time in reviewing my post.
I`m new to this forum and as also newbie to linux and I need some help.

Can you tell me what should be done in case I lost hole /lib dir? I use Slackware 8.1

Prior I posted here I copied hole /lib dir from my friend`s Slack 8.1. Tar-ed and untar-ed it. Then i deleted /lib/modues subdir as it came from not my system. Then "make modules" and "make modules_install" in /usr/src/linux were done as I wanted to install all modules that were used on my system prior crushing.

After all I used ldconfig -v and it seemed all went fine untill I tried to compile new sources. During all "make" procedure I receive "undefined reference to `__ctype_b'" errors.

It seems there is a problem with glibc/gcc sources on my system.

Is there any way to restore my Slack without reinstalling it from the start?

Thanks for your time.


Old 06-12-2003, 04:12 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
reinsatlling your distro is obviously a very last step, but in this case that's a hell of a state to get your system into, especiialy if you have been compiling things from source linked directly against your own kernel heades etc... if it is a generic install i'd think you could reinstall over the top of the current installation, but I wouldn't really expect that to work (never mesed with slack much, so wouldn't know if it will insist on deleting everything before installing. reinstalling from scrach might well be the best option for a problem as fundamental as yours.
Old 06-12-2003, 05:42 PM   #3
LQ Newbie
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you Chris for your kind reply.

I really wouldn`t reinstall hole system but if everything else failed I will do. Now my Slack is working stable as gateway/router on DSL cable and my lan users are quite happy so far. Problem is, in this situation - due to "undefined reference to `__ctype_b'" errors - I will never compile new sources nor compile new kernel when new one is published.

In the meantime I have done more "rescue tasks" I thought they could help:

- rebooted from instalation CD
- mounted partition with my distro
- reinstalled glibc-solibs-2.2.5.tgz using -root parameter
- reinstalled glibc-2.2.5.tgz using -root parameter
- rebooted my distro, all came up fine

Unfortunately `__ctype_b' error still exists

Really appreciate your ideas on this issue.

Old 06-13-2003, 09:41 AM   #4
LQ Newbie
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Just to inform anyone who might face this issue in the future, I solved problem above by upgrading glibc package to 2.3.1 version.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is the meaning of /lib/tls directory? voger Fedora 2 11-25-2005 06:56 PM
including usr/local/lib directory Quest101 Linux - Software 3 01-01-2005 05:13 PM
Restoring Home Directory Ownership taylortbb Linux - General 1 08-27-2004 10:40 AM
I accidently deleted the lib directory ICO Slackware 2 02-10-2004 01:40 PM
grep: /usr/lib/ No such file or directory FirstTimeUser Linux - Software 9 10-15-2003 10:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 AM.

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