ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] Knoppix can't find lib
Ingo Pakleppa
19 Oct 2003 15:43:55 -0700

Linux does not find libraries through the PATH variable. Rather, it
loads libraries through hardcoded paths in your executable. So if
libstdc++.so.2.9 is in /usr/lib on RedHat, it also has to be in /usr/lib
in Knoppix.

This limitation is by design, and is one of the reasons Linux is more
secure than Windows. A virus cannot simply place its own copy of the
library somewhere in the path (for instance, a virus or hacker could
place a hacked MSVCRT.DLL into your current directory, and it would be
found by all your applications you run from there), but would have to
actually overwrite the specific file.

You should be able to use the program /lib/ld-linux.so.2 (with the
--list argument) to find out where ecs.bin actually expects any
libraries, and which ones it expects.

I did try that on ecs.bin, though, and found that there seems to be
something wrong with it; even under RedHat, it says "no such file or
directory".

On Sun, 2003-10-19 at 06:01, Mark Gilmore wrote:
> In attempting to run any .bin (such as ecs.bin) under Knoppix,
> I get this:
>          ecs.bin: error while loading shared libraries:
>                  libstdc++.so.2.9: cannot open shared object file:
>                          No such file or directory.
> This is horse hockey, as the file is there and PATH is set correctly.
> I even copied the file to my local directory (which PATH also points to).
> But Knoppix still "can't find" it.
> Any ideas ?
> Thanks,
> 
> Mark Gilmore
> http://OmnipotenceSoftware.com
> 
> ______________________________________________________________________
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.