Crap I nuked /usr/build/libtool [on lenny]

If you take a look at this irc log, and grep for “crap I nuked /usr/build/libtool“, you’ll find that someone has done exactly what I have done, trying to do exactly what I was trying to do.

The solution was simple, ln -s /usr/bin/libtool /usr/build/libtool, but usr/bin/libtool comes from the libtool package, which wasn’t installed on my system (?!). So I installed it, and symlinked it, no problem; but how the hack was there a /usr/build/libtool anyway, without the libtool package being installed? Where does it come from? I’d like to restore it.

And I know, I should have used mv instead of rm -rf, this was a good lesson.


I suppose you can’t just steal this from another machine then?

You probably need to find what installed that file. It could have been part of the base OS install as well.

Using old rpm one could use:

rpm -q -f /usr/build/libtool

or something close to ask the system which package installed the file. I am not certain on more modern package managers how to do this, but chances are they have a way.

Source : Link , Question Author : Attila O. , Answer Author : Michael Graff

Leave a Comment