Sunday, May 11, 2014

Installing 32 bit glibc on 64 bit linux OS

When you are trying to start your applications, it is possible that you encounter a startup error in your applications that require native library support. It could be because you don't have 32 bit glibc package installed on your 64 bit OS. Things to confirm,


  • Confirm if your system is indeed running 64 bit OS

$ uname -a
Linux ip-10-98-0-41 2.6.32-431.11.2.el6.x86_64 #1 SMP Mon Mar 3 13:32:45 EST 201
4 x86_64 x86_64 x86_64 GNU/Linux

  • Confirm the distribution version
$ cat /etc/system-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

  • Confirm the glibc version installed
$ sudo yum list installed glibc
Loaded plugins: amazon-id, rhui-lb, security
Installed Packages
glibc.x86_64          2.12-1.132.el6           @rhui-REGION-rhel-server-releases

  • Once you have confirmed that you don't have 32 bit glibc installed, you can install it using package manager specific to your OS
$ sudo yum install -y glibc.i686

  • Once 32 bit glibc package has been installed, you can confirm by running "yum list installed"  again
$ sudo yum list installed glibc
Loaded plugins: amazon-id, rhui-lb, security
Installed Packages
glibc.i686            2.12-1.132.el6           @rhui-REGION-rhel-server-releases
glibc.x86_64          2.12-1.132.el6           @rhui-REGION-rhel-server-releases


No comments:

Post a Comment