LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2004, 11:22 PM   #1
dawizman
Member
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 119

Rep: Reputation: 15
Updating Shared Library Links


I am rapidly becoming very proficient in linux, but I have come across something that I cant seem to solve myself.

I'm running slackware 9.1 or my laptop which utilizes a 4200rpm hard drive. Yeah, tell me about it.

Anyway, on every start-up it goes through this one process which makes up about 1/3 of total boot time. I see this line while it is running:

Code:
Updating Shared Library Links /sbin/ldconfig
basically, I'm wondering the following:

1)What exactly does this do?
2)Is it necessary to run it at every boot?
3) If not, how can I go about removing it?
 
Old 04-27-2004, 12:32 AM   #2
SlackMaster
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
ldconfig updates shared library locations

ldconfig is definitely necessary and should be left to run at boot time.

ldconfig updates the locations of shared libraries on the system.

For more information, run the command:

man ldconfig

...to view the ldconfig man page.

After reading the man page, so you have a better idea of what it's doing and how it works, you may want to check its config file (/etc/ld.so.conf, by default) to see if any of the directories listed there do not exist or are otherwise unreachable at the point during the boot that the command runs. If ldconfig can't locate or access the directories, this could be the cause of the delay.

Also: I've noticed that, in 9.1, ldconfig does seem to take longer on boot than it did in previous slackware releases (8.1, 9.0). I haven't investigated this yet myself.
 
Old 04-27-2004, 01:00 AM   #3
Ninja Cow
Member
 
Registered: May 2003
Location: Pensacola, Florida
Distribution: Debian, Slackware, Amigo, Ubuntu
Posts: 221

Rep: Reputation: 30
I don't have ldconfig left on at boot time. I run it after I installed stuff....so meeh.
 
Old 04-27-2004, 01:03 AM   #4
dawizman
Member
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Ninja Cow
I don't have ldconfig left on at boot time. I run it after I installed stuff....so meeh.
Yeag, from reading the man files, It really seems that I only need to run ldconfig after something new is installed. I think I'll try and remove it from the boot sequence and see how it works.
 
Old 04-27-2004, 02:28 AM   #5
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
let us know how it works, I have the same issue with my system, boot takes ages because of ldconfig.
 
Old 04-27-2004, 09:04 AM   #6
dawizman
Member
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 119

Original Poster
Rep: Reputation: 15
Hmm.. I cant seem to find anywhere in my boot scripts where there is a mention of ldconfig. Ninja Cow, or anyone else, where can ldconfig be remover from the boot sequence?
 
Old 04-27-2004, 10:54 AM   #7
SlackMaster
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
You'll find in the /etc/rc.d/rc.M file.

Be sure to comment out all three lines of the "If,then/echo/command" statement.

Obviously, it doesn't HAVE to be run on every boot. But, if you don't, you'll need to remember to run it after every install, update, upgrade, recompile, etc.

For my purposes, I prefer to let it run at boot, just to be sure. That few seconds of extra boot time is not a critical issue for me. Especially since I don't reboot that often.
 
Old 04-27-2004, 11:02 AM   #8
dawizman
Member
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by SlackMaster
You'll find in the /etc/rc.d/rc.M file.

Be sure to comment out all three lines of the "If,then/echo/command" statement.

Obviously, it doesn't HAVE to be run on every boot. But, if you don't, you'll need to remember to run it after every install, update, upgrade, recompile, etc.

For my purposes, I prefer to let it run at boot, just to be sure. That few seconds of extra boot time is not a critical issue for me. Especially since I don't reboot that often.
Thanks

Yes, since I have my system set-up the way I like it, I rarely install / recompile anything, so running ldconfig is no big deal for me.

Also, on a slow hard drive like I have, it take a long time compared to the rest of the boot process.

Thanks again.
 
  


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
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 07:47 AM
Updating library links Boudewijn Linux - Newbie 3 11-08-2004 02:57 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
updating shared library links jamaso Slackware 1 06-20-2004 10:25 AM
Prevent updating shared library links melinda_sayang Slackware 1 02-26-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:05 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