[techtalk] ldconfig and solving your own problems (was last straw]

kallicat at linuxfreemail.com kallicat at linuxfreemail.com
Wed Nov 1 19:27:45 EST 2000


On Wed, 1 Nov 2000 14:01:57 +0100
Magni Onsoien <magnio at pvv.ntnu.no> wrote:
> I also thought ldconfig was run automagically at boot - it says so on its
> webpage - but it didn't when I just tested. However, I just tried to add
> /usr/lib in ld.so.conf, and ldconfig might just ignore that and thus
> assume the configfile is untouched, because /usr/lib is default anyway.

Well, RedHat's bugzilla has a bug stating that ldconfig isn't run
automagically even tho it ought to be, which explains why my system
doesn't do it.

> I can't remember which (at least not on a bunch of Solaris and
> Linuxboxes I have been/am using) searching anything but stuff in PATH. Are
> you sure there wasn't an alias which=locate or something like that which
> searched through more or less the whole system on a box you used before?

Thinking back, which was looking through a bigger chunk of the box cause
my personal account had a longer PATH (frex, I remember /, /usr/bin,
/usr/games and /sbin being in my account's path. this is a new distro
for me, and my default PATH is a lot shorter, and root's is positively
paranoid compared to mine).


> Anyway, locate is a nice tool, just make sure you skip directories you
> aren't interested in (on a multiuser box, /home should be skipped, skip
> NFS if you mount fex a huge ftp-mirror via NFS etc). And make sure
> /etc/cron.daily/slocate.cron or whatever your distro calls it today is
> run regularly.

I'll check it out... I lose stuff quite regularly.

Amanda Babcock <alb at quandary.org> wrote:
> Perhaps you are thinking of "whereis"?  "which" is meant to only check
> your path, since it is supposed to tell you which copy of something you
> are using (the UCB copy or the sysV copy, usually) by telling you only the
> *first* instance of the command that it finds in your path.

Nope, I was thinking of which and forgetting that I had a bigger path
using my old distro. Whereis sounds pretty useful too tho. 

I'm thinking of making up a list of things I wish I'd known before I
started using Linux and Unix. Some of them are pretty silly (like chmod
is cool because it lets you fix permissions when your distribution
installs a copy of a game whose the top level directory is not
executable) and others are a bit more serious (like apropos is cool
because it helps you figure out what else to look at when you're stuck
on a tricky problem).

Emily, who is happy because she now has a copy of Windowmaker that works
the way it is supposed to and will let her play gnomehack and use
korganizer

Get your own FREE E-mail address at http://www.linuxfreemail.com
Linux FREE Mail is 100% FREE, 100% Linux, and 100% yours!




More information about the Techtalk mailing list