/home/josephspurrier

Invalid ELF Header

On a Linux system, usually when an Invalid ELF Header message appears it means one of the libraries cannot be loaded.

Error Message: while loading shared libraries: /lib/libncurses.so.5: invalid ELF header

Solution: Recopy lib/libncurses.so.5 and /lib/libncurses.so.5.7 because chances are libncurses.so.5 cannot find libncurses.so.5.7.

There are a large number of libraries linux needs to boot and they are (located in /lib):

cpp (soft link)  
ld-linux.so.2  
libc.so.6  
ld-2.10.1.so  
libreadline.so.6  
libreadline.so.6.0  
libhistory.so.6  
libhistory.so.6.0  
libncursesw.so.5  
libncursesw.so.5.7  
libdl.so.2  
libdl-2.10.1.so  
libblkid.so.1  
libblkid.so.1.1.0  
libcrypt-2.10.1.so  
libcrypt.so.1  
libuuid.so.1  
libuuid.so.1.3.0  
libext2fs.so.2  
libext2fs.so.2.4  
libcom_err.so.2  
libcom_err.so.2.1  
libe2p.so.2  
libe2p.so.2.3  
libpthread-2.10.1.so  
libpthread.so.0  
libresolv.so.2
libresolv-2.10.1.so

The majority of the libraries are pulled from Glibc so you may need to updated using apt-get or yum. The version numbers above may be different on your system, but it given you an idea of the dependencies. To see what the actual libraries do, check out the bottom of the page: http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html.

#bash #bsd #compile #kernel #linux #sysv