spustitelny soubor se nespusti

Petr Skoda skoda na sunstel.asu.cas.cz
Pondělí Únor 23 11:53:04 CET 1998


Vazeni mam zahadu z ktere nejsem moudry.
 
V jednom astronomickem baliku jsou binarky urcene pro RH5.0 udajne
slinkovane s glibc. Binarka ma nastavena vsechna prava x (daval jsem i
777) a kdyz ji chci spustit tvrdi mi shell ze neexistuje , dokonce i
strace po execve tvrdi , ze takovy soubor neni.

Pokud tentyz soubor prenesu(mam suplik na disk) na stroj s RH5.0 tak se
normalne spusti a bezi.

ukazka pokusu (jako root i normalni uzivatel je to stejne, disk je
montovany defaults (rw) 


bash: ./cl.e: No such file or directory
[root na syrma bin.redhat]# strace ./cl.e
execve("./cl.e", ["./cl.e"], [/* 17 vars */]) = 0
strace: exec: No such file or directory

Neni to nejaka vlastnost non-glibc linkovaneho shellu, nebo nejake
magic-numbers problemy.

kdyz ale dam 
[root na syrma bin.redhat]# file ./cl.e
./cl.e: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked, not stripped

takze to potvora zna - ale nechce znat pri spusteni.

Nemam bohuzel cist dlouhe komentare ke glibc apod ale rad bych mel jasno,
nez zacnu autorum lat, ze uvadeji - ze ty binarky by mely jit spustit i na
jakemkoli jinem linuxu

rikaji ,ze 
"On the Linux platforms you can *run* (execute) IRAF using any set of
Linux
binaries, i.e. the Slackware or RedHat binaries should run on Linux
platform
providing ELF support (this should include any release of Linux in the
past
1-2 years).  To compile any new IRAF or IMFORT programs however, you must
install the correct set of binaries for your platform.
"

a dale pak 

"The RedHat binaries, which were built using
        Redhat 5.0, use the new glibc libraries which result in very large
        executables if linked statically, so the RedHat binaries are
        dynamically linked, and shared library version problems are
        possible (the redhat binaries are slightly smaller than linux as a
        result however).
"


Nejsem z toho moc moudry - predpokladam, vsak, ze i dynamicky linkovane
binarky by mely na nonglibc systemu se alespon spustit a pak rvat, ze je
blba knihovna. Nebo ne ?

Muzete mi to nekdo vysvetlit ?
Diky  

************************************************************************* 
*  Petr Skoda                         Tel   : (0204) 649201, l. 361     * 
*  Stelarni oddeleni                          (0204) 620361, 620136     *
*  Astronomicky ustav AVCR            Fax   : (0204) 620250             *
*  251 65 Ondrejov                    e-mail: skoda na sunstel.asu.cas.cz  *
*  Ceska republika                            pskoda na mbox.cesnet.cz     *
*************************************************************************



Další informace o konferenci Linux