Using yum command to load missing libraries

03/26/2018

Missing Linux Libraries

We often get a support call from clients who get an error message about missing libraries on their Linux box.
Typical errors may look like the following:

../tools/COMINSTALL: ../tools/unzip: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

The solution for this problem is to use the yum command to find the missing libraries and install them. Here is the procedure..

yum search glibc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.sigmanet.com
 * extras: repos-lax.psychz.net
 * updates: mirror.keystealth.org
================================================ N/S Matched: glibc 
glibc-common.x86_64 : Common binaries and locale data for glibc
glibc.i686 : The GNU libc libraries
glibc.x86_64 : The GNU libc libraries
.....
Once you find the name of the missing library, you can go ahead and install it using the following command.
yum install glibc.i686
The installation will start and complete after a few seconds. There should be a message that the installation completed like the following.
Installed:
  glibc.i686 0:2.12-1.209.el6_9.2                                                                                   

Dependency Installed:
  nss-softokn-freebl.i686 0:3.14.3-23.3.el6_8                                                                       

Complete!


Other Common Missing Libraries

When running some our tools on Linux, clients may experience missing library errors.
Here are a few typical errors and solutions using the yum command.

../bin/mmask: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

yum search curses
yum install ncurses-libs.i686

hagai@asmsc45 examples]$ ../bin/mmask -h
../bin/mmask: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory

yum search libterm
yum install compat-libtermcap.i686


../bin/mmask -h
../bin/mmask: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory

yum search libf2c
yum install compat-libf2c-34.i686




ARTWORK CONVERSION SOFTWARE, INC.                  Company Profile
417 Ingalls St.,     Santa Cruz, CA 95060         Tel (831) 426-6163     Fax 426-2824               email: info@artwork.com