<p>Em 27/07/2011 08:26, "Victor Hooi" <<a href="mailto:victorhooi@yahoo.com">victorhooi@yahoo.com</a>> escreveu:<br>
>><br>
>> Hi,<br>
><br>
><br>
&g>><br>>> Hi,<br>> <br>> <br>> I have two Solaris sytems, one which we have root-access for and the other<br>> only a normal user account.<br>> <br>> On the system for which we have root, I've installed pkg-util and some<br>
> OpenCSW packages (e.g. vim, bz2ip, gdb etc.).<br>> <br>> I've then tarred up the /opt/csw directory, and transferred it to the other<br>> system in which we only have limited access (and write access only to ~ and<br>
> "/db/pub/eq").<br>> <br>> I then set the LD_LIBRARY_PATH to point to the /db/pub/eq/csw/opt/csw/lib<br>> directory.<br>> <br>> I then try to run the programs (yes, I do know this whole thing is a dirty,<br>
> dirty hack, but this was the quickest way of getting a decent development<br>> buildchain up on the limited-access system).<br>> <br>> Some of them (e.g. vim, ruby or Python) do work.<br>> <br>> Others, however, give an ELFCLASS32 error:<br>
> <br>> bash$ ./bzip2<br>>> ld.so.1: bzip2: fatal: /db/pub/eq/csw/opt/csw/lib/libbz2.so.1.0: wrong ELF<br>>> class: ELFCLASS32<br>>> Killed<br>> <br>> <br>> bash$ ./gdb<br>>> ld.so.1: gdb: fatal: /db/pub/eq/csw/opt/csw/lib/libncurses.so.5: wrong ELF<br>
>> class: ELFCLASS32<br>>> Killed<br>> <br>> <br>> Uname on the root-access box (on which OpenCSW was installed):<br>> <br>> SunOS puppet 5.11 snv_151a i86pc i386 i86pc Solaris<br>> <br>> <br>
> Uname on the limited-access box (where we are trying to run the tranplanted<br>> binaries):<br>> <br>> SunOS eqaegd05 5.10 Generic_144489-06 i86pc i386 i86pc<br>> <br>> <br>> Both bzip2 and libbz2.so appear to be 32-bit (at least from what I can<br>
> tell):<br>> <br>> bash$ file bzip2<br>>> bzip2: ELF 32-bit LSB executable 80386 Version 1 [FPU],<br>>> dynamically linked, not stripped, no debugging information available<br>>> bash$ file ../lib/libbz2.so<br>
>> ../lib/libbz2.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU],<br>>> dynamically linked, stripped<br>> <br>> <br>> What would be causing this error? And how would I fix it?<br>> <br>> Cheers,<br>
> Victor<br></p>