[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[2]: Doing Stupid things?!
>what libs
nm, or as I said, *less* <thebinary> and search for /lib/ note the
trailing slash which must be escaped. When I made linux-lp I wrote a small
search utility in C that parses the head (1st 8k or 30%) of a binary for
such entries.
I will definitely look into the loader mechanism, this is intriguing.
You know, the best thing about Linux is, you can drive it quite a while
without having to look under the hood...
On Tue, 2 Dec 1997, Stas Bekman wrote:
> > Eli Marmor <marmor@elmar.co.il> wrote:
> > > It is forbidden to strip shared libraries
> >
> > It's incorrect, at least for Linux/ELF. I do it all the time. Did you mean "it
> > is forbidden to strip shared libraries _currently_ being used by a process"?
> > Since libc is used by init (I concern here the original poster), it was fatal
>
> Nope, it wasn't. I still run my system with stripped libs, I didn't have
> the time to restore them from backup. But nothing really happends, most of
> the things are working Ok, including init...
>
> That's the question I ask -- How can I know what libraries some binary
> uses? for example I can't run 'mc' now. If I knew how to find out what
> libraries it depends on I'll know what to fix...
> At least I know that there is a way since that 'yard' rescue disk program
> somehow learns what libs your need once you choose the binaries,
> I'm going to see the code to find it out...
>
> And I have more general question about libs, I'm sure that most of us has
> got into situation when you want to run some application and it says can't
> load libABC But I never knew where to look for it, what package it's a
> part of. (I'm not talking about obvious ones -- libc and etc)
> But I remeber that many times I gave up on the tool since I couldn't
> supply the lib it wanted to use.
>
> Do you know how to solve that kind of problem! You can't say go search the
> web, since I did and you end up with finding some live linux system , but
> still you can't find what the package it belongs to. Sorry but I don't
> remember some example of name (e.g. I've had prolems with some libX
> libraries and they weren't part of X dist, but don't take it -- it's only
> an unsuccessfull example..)
>
> Thank you
> ______________________________________________________________________
> Stas Bekman mailto:sbekman@iil.intel.com [just another webmaster]
> Linux Installation Party [Technion] http://instaparty.israel.eu.org/
> Home Page: http://www.eprotect.com/stas
> A must visit: http://www.eprotect.com/stas/TULARC (Java,CGI,PC,Linux)
> Linux-il Home: http://www.linux.org.il/
>
>
Peter Lorand Peres
------------------
plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
http://ourworld.compuserve.com/homepages/plp
"The creed of Inland Revenue is simple: 'If we can bring one little smile to one
little face today - then somebody's screwed up somewhere' - David Frost
(Note: The above stands valid in all countries until proven wrong)