DB2 installation on Linux fails with DBI1189E error even though the image is for the correct platform
The following error may occur when installing DB2 on Linux using db2_install or db2setup even though the operating system platform matches the correct Linux installation image type.
DBI1189E There has been an attempt to use db2setup
on an image for a platform that does not match the current platform
'Linux/x86-64' on which it is being run.
The typical reason why this problem would happen is because the wrong image was being used. For example, using the 32-bit x86 image on a 64-bit x86_64 platform.
However, in this scenario, the platforms do match.
This could happen due to various reasons:
1) Because the operating system is missing the prerequisite OS packages needed by DB2
2) Because the install image package was not extracted correctly. The below example shows the files that should be in the path after you extract the DB2 10.5 Fixpack 7 image. Some files might be missing after extracting the package.
~/images/v105fp7/server_t # ls -la
drwxr-xr-x 5 root root 4096 Mar 1 09:48 .
drwxr-xr-x 3 root root 4096 Mar 1 09:46 ..
drwxr-xr-x 6 bin bin 4096 Mar 1 12:29 db2
-r-xr-xr-x 1 bin bin 5795 Dec 21 14:05 db2_deinstall
-r-xr-xr-x 1 bin bin 5665 Dec 21 14:06 db2_install
-r--r--r-- 1 bin bin 41539 Dec 21 14:06 db2checkCOL.tar.gz
-r--r--r-- 1 bin bin 4987 Dec 21 14:06 db2checkCOL_readme.txt
-r-xr-xr-x 1 bin bin 5880 Dec 21 14:06 db2ckupgrade
-r-xr-xr-x 1 bin bin 5629 Dec 21 14:06 db2ls
-r-xr-xr-x 1 bin bin 5639 Dec 21 14:05 db2prereqcheck
-r-xr-xr-x 1 bin bin 5647 Dec 21 14:06 db2setup
-rw-r--r-- 1 root root 297671 Mar 1 09:48 files.txt
drwxr-xr-x 10 bin bin 4096 Dec 21 14:06 ibm_im
-r-xr-xr-x 1 bin bin 5683 Dec 21 14:06 installFixPack
drwxr-xr-x 4 root root 4096 Dec 21 14:01 nlpack
Resolving the problem
1) If there are prerequisite package missing, use the website links at the bottom of this page to verify that all the prerequisite packages are installed on the Linux machine based on the release of DB2 being installed. Install the missing packages then try the installation again.
2) The DB2 image is usually a tar.gz file.
Common commands to extract are:
gunzip followed by tar xvf <filename> --- or ---
zcat file.tar.gz | tar xvf -
If using commands like this still result in missing files, there may be something wrong with the gzip/tar commands on the system. The problem could happen when you untar image to NFS file system. Another system may want to be used to try to extract the package instead.
More support for:
DB2 for Linux, UNIX and Windows
Install/Migrate/Upgrade - Install/Setup - Command Line
Software version: 9.5, 9.7, 10.1, 10.5
Operating system(s): Linux
Reference #: 1661934
Modified date: 06 September 2016