LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-23-2005, 02:56 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
ldconfig at startup


Hi - I hope you feel I'm not flooding this forum -
I hope I am asking useful questions, whcih I ahve searched up
before asking!

"ldconfig" runs every time I start up and it takes a long time.
What I would like to know is what it does, is there any way to optimise it,
background it, or avoid it alltogether?

Thanks,
Riddick
 
Old 08-23-2005, 03:16 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Updates shared libraries. I turn mine off, it's really only useful after you install applications.
 
Old 08-23-2005, 03:17 PM   #3
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Re: ldconfig at startup

You can safely comment the ldconfig lines in /etc/rc.d/rc.S as long as you manualy run it after removing a package with removepkg(8).

-- LiNuCe
 
Old 08-23-2005, 03:17 PM   #4
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
right - so worth it, just not every time I start the computer.
Which rc. files calls it? is it boot?
 
Old 08-23-2005, 03:22 PM   #5
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
there is no ldconfig in rc.S!
Thanks for the fast replies,

Riddick
 
Old 08-23-2005, 03:35 PM   #6
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
Riddick: there is no ldconfig in rc.S!
Sorry, the ldconfig lines are in /etc/rc.d/rc.M. To disable them, just replace the following lines :

Code:
# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
  echo "Updating shared library links:  /sbin/ldconfig"
  /sbin/ldconfig
fi
with :

Code:
# Update all the shared library links:
#if [ -x /sbin/ldconfig ]; then
#  echo "Updating shared library links:  /sbin/ldconfig"
#  /sbin/ldconfig
#fi
-- LiNuCe
 
Old 08-23-2005, 03:41 PM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Thanks a million!
 
Old 08-24-2005, 01:31 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
if you do this, yyou need to run ldconfig any time you install or uninstall libraries on your system.
 
Old 08-24-2005, 02:22 AM   #9
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Quote:
gnashley: if you do this, yyou need to run ldconfig any time you install or uninstall libraries on your system.
Not really. You need to run ldconfig only when you have removed a package which contains libraries : every time you install a package with installpkg, it run ldconfig. However, the other cases for which you could run ldconfig is when you install or remove a library without using package managment tools, but as this is a very bad pratice ... :)

-- LiNuCe
 
Old 10-01-2005, 06:44 AM   #10
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Rep: Reputation: 17
Question just another ldconfig question...

I don't want to start a new thread because it fits in here:

Why takes ldconfig at boot so much longer than running
it manually when the system is up?
 
Old 10-01-2005, 08:45 AM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Actually, it doesn't take so long! The prompt gets left on the screen while init finishes some other tasks that don't have a prompt line to replace the line for ldconfig. Look at /etc/rc.d/rc.M and you'll see what I mean.
 
Old 10-15-2005, 11:55 AM   #12
gtludwig
Member
 
Registered: Oct 2005
Location: Ireland
Distribution: Slackware64-current
Posts: 233

Rep: Reputation: 18
Guys,

Can you help me out? I posted a thread about something that's happening here but I don't know why or what to do...

Please check it out at http://www.linuxquestions.org/questi...hreadid=372978

Thanks
 
Old 10-15-2005, 12:13 PM   #13
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
I've got a cron job set up to run ldconfig every Wednesday night at 11:00 P.M. and I run it manually when I remove any programs just to make sure .

Later,
MMYoung
 
Old 10-15-2005, 01:02 PM   #14
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Run ldconfig 5 minutes after boot ...

I like this solution, from Tinkster (a good while ago, in this same forum):
Quote:
You edit /etc/rc.d/rc.local, append line
/usr/bin/echo "ldconfig" | /usr/bin/at now +5minutes



That will run ldconfig 5 minutes after the boot-scripts
have finished, X and your "most important apps"
should be up & running, and the process in the
background shouldn't bother you too much
 
  


Reply


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 ldconfig? MicahCarrick Linux - Software 2 10-03-2005 06:31 PM
where is ldconfig ? trutnev Red Hat 3 06-01-2005 12:05 PM
ldconfig diefree Fedora 4 12-11-2004 02:20 AM
what does ldconfig do ? rajorshi Slackware 8 09-14-2004 04:19 PM
ldconfig gui10 Slackware 3 05-14-2002 08:30 AM

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

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