LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-24-2020, 09:54 PM   #1
hello.world
LQ Newbie
 
Registered: Apr 2020
Location: USA
Distribution: LFS
Posts: 22

Rep: Reputation: Disabled
/sbin/ldconfig not present


Hi, I'm in the middle of a BLFS build, having finished LFS a few days ago. I have successfully installed several BLFS packages, but I ran into a bit of a problem while installing Xorg libraries.

For some reason, /sbin/ldconfig does not exist on my system. I have tried looking (via ls) in /sbin, /usr/sbin, /bin, and /usr/bin. I'm not sure what to do now.

I'm pretty sure there were no problems while building glibc, as the test suites did not fail (if I remember correctly).

At this point, would it be possible (and safe) to rebuild and reinstall glibc?

Thanks in advance!
 
Old 07-25-2020, 04:07 PM   #2
hello.world
LQ Newbie
 
Registered: Apr 2020
Location: USA
Distribution: LFS
Posts: 22

Original Poster
Rep: Reputation: Disabled
Something I forgot to mention: there is a man page for ldconfig.
 
Old 07-28-2020, 01:30 AM   #3
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
If you build the exact same glibc, it shouldn't crash out on you during the make install, but it sucks when it does, so instead I'd use:

Code:
make install install_root=/some/dir
Strip your binaries and libraries and then manually copy it over from off system. That's how I upgrade glibc, anyway. You can write through directories with "cp -a". For example, if I did my make install to /some/dir I could boot from another Linux install (e.g. host system) or boot from a DVD, mount the filesystem to some /mountpoint and:

Code:
cd /mountpoint/some/dir
cp -a bin /mountpoint/
cp -a sbin /mountpoint/
cp -a lib /mountpoint/
cp -a usr /mountpoint/
and so on. That will just write through the existing directories and do the right thing with symlinks.

Alternatively, you could just set up the chroot again on the host system, and recompile and install glibc again that way but take care not to duplicate whatever caused your incomplete glibc install in the first place.
 
1 members found this post helpful.
Old 07-28-2020, 10:38 AM   #4
hello.world
LQ Newbie
 
Registered: Apr 2020
Location: USA
Distribution: LFS
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hello, thanks for the reply. I like the sound of your first method, so I think I'll go with that one. Before I commit to anything, I have a question.

Would I need to do all of the configuring that is done in Chapter 6 after the install?

Thanks for your help.

Last edited by hello.world; 07-28-2020 at 11:14 AM.
 
Old 07-28-2020, 03:30 PM   #5
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
No, you've already done all that stuff. You're just reinstalling glibc.
 
Old 07-28-2020, 03:49 PM   #6
hello.world
LQ Newbie
 
Registered: Apr 2020
Location: USA
Distribution: LFS
Posts: 22

Original Poster
Rep: Reputation: Disabled
Yeah, I figured so. I reread the build instructions for glibc in the LFS book a couple of times, and a lot of my questions cleared up. I decided to give it a try, and I just finished it. It looks like it has worked, as /sbin/ldconfig is now on my system. So far, I don't think anything has gone terribly wrong, so that's good.

Thank you very much for helping me solve this, I was (and still kinda am) a bit unfamiliar with building from source.
 
  


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
/sbin/ldconfig: /usr/lib64/libnssutil3.so is not a symbolic link Dornith Linux - General 1 01-03-2013 06:48 PM
/sbin/ldconfig Not ELF Casket Slackware 7 08-02-2005 01:59 AM
/sbin/ldconfig: /usr/lib/libgtkhtml-3.0.so.2 is not a symbolic link rosariowong Slackware 13 04-29-2005 03:41 PM
messing with /sbin/ldconfig errors. Andronik Slackware 3 12-20-2004 03:43 PM
/sbin/ldconfig and X problems c31c Slackware 1 06-28-2004 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:12 PM.

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