Getting error “/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory”

If you are trying to install Load Generator on Red Hat Enterprise Linux Server release 6.2 (Santiago).

After installing load generator, trying to setup load generator over firewall.

To do, trying run" ./agent_config -setup" as root user and getting error:

"root@hal-lrga-p02 bin]# ./agent_config -setup

-bash: ./agent_config: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

[root@hal-lrga-p02 bin]#"

The cause of this error is because Red Hat Linux 6.x 64-bits and by default has only the 64-bits library installed.

However, Performance Center is 32-bit application and needs the 32-bit libraries.

Please follow the steps given in this article to install the 32-bit libraries

http://www-01.ibm.com/support/docview.wss?uid=swg21459143

Unable to install Installation Manager on RHEL 6.0/6.1 (64-bit)

Technote (troubleshooting)

Problem(Abstract)

IBM Installation Manager cannot be installed or started on a RHEL 6.0/6.1 x86_64 (64-bit) machine.

Symptom

In a shell window, you run the command ./install in a directory that contains the installation files for Installation Manager. You receive the output:

[root@zahar-rhel64 IMinstallKit]# ./install

bash: ./install: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

You might also receive an output such as:

[root@c01bmp02 IM]# ./install

JVMJ9VM011W Unable to load j9dmp24: libstdc++.so.5: cannot open shared object file: No such file or directory

JVMJ9VM011W Unable to load j9jit24: libstdc++.so.5: cannot open shared object file: No such file or directory

JVMJ9VM011W Unable to load j9gc24: libstdc++.so.5: cannot open shared object file: No such file or directory

JVMJ9VM011W Unable to load j9vrb24: libstdc++.so.5: cannot open shared object file: No such file or directory

Cause

Installation Manager is a 32-bit application and requires 32-bit versions of OS system libraries. These libraries are not installed on RHEL 6.0/6.1 x86_64 (64-bit) by default. You must install these 32-bit libraries on your system before you run Installation Manager.

Resolving the problem

The required libraries are available on the Red Hat 6.0/6.1 distribution DVD. To install the required libraries:

1. Mount the DVD to the system. Insert the DVD into the DVD drive.

2. Select open a terminal window as a root.

3. Execute the commands:

[root@localhost]# mkdir /mnt/cdrom

[root@localhost]# mount -o ro /dev/cdrom /mnt/cdrom

4. Create the text file server.repo in the /etc/yum.repos.d directory.

NOTE: To use gedit, execute the command:

[root@localhost]# gedit /etc/yum.repos.d/server.repo

Add the following text to the file:

[server]

name=server

baseurl=file:///mnt/cdrom/Workstation

enabled=1

where baseurl depends on the mounting point and the RHEL distribution.

In the example, the mounting point is cdrom and the RHEL distribution is Workstation but could be sever.

5. Execute the command:

[root@localhost]# yum clean all

6. Execute the command to import related public keys:

[root@localhost]# rpm –import /mnt/cdrom/*GPG*

7. Execute the commands to install the required libraries:

[root@localhost]# yum install gtk2.i686

[root@localhost]# yum install libXtst.i686

If you received the the missing libstdc++ message above, install the libstdc++ library:

[root@localhost]# yum install compat-libstdc++

During the install you might receive prompts similar to the example. Answer with ‘y’.

Example:

Total download size: 15 M

Installed size: 47 M

Is this ok [y/N]: y

NOTE: The package name extension (.i686) might change in the command depending on the hardware platform that you use. The table lists valid values for the package name extension.

RHEL 6.0 package names on different platforms

Platform 32-bit 64-bit

x86/x86_64 i686 x86_64

ppc/ppc64 ppc ppc64

s390/s390x s390 s390x

Advertisements

One thought on “Getting error “/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s