I am trying to install DB2 for non-root on an Ubuntu Docker image. I posted
previously about trying to run the ibmcom/db2 cloud images as non-root, but this doesn't seem possible after further investigation. My next approach is to download and install the IBM DB2 Community edition (v11.5.5_linuxx64_server_dec.tar.gz) on an Ubuntu 20.04 server image. I'm getting a number of pre-req failures that I'm not sure how to resolve. Hoping someone else has resolved these and can share the solution.
After starting with the Ubuntu 20.04 image I ran the following install/updates:
- apt-get update -y
- apt update && apt upgrade -y
- apt-get install -y lib32stdc++6
- apt-get install -y libaio-dev
- apt-get install -y libstdc++5 libstdc++6
- ln -s /usr/lib/x86_64-linux-gnu/libpam.so.0 /lib/libpam.so
These resolved some of the pre-check failures with the latest results, below. I was following the resolution on a post from last year (https://blog.dbplatz.com/how-to-install-db2-11/), but some of these packages don't seem to be readily available. Any help is much appreciated.
Thanks
root@e203a786119b:/tmp/db2/server_dec# ./db2prereqcheck -v 11.5.5.0
==========================================================================
Fri Feb 12 15:13:44 2021
Checking prerequisites for DB2 installation. Version "11.5.5.0". Operating system "Linux"
Validating "Linux distribution " ...
Required minimum "UBUNTU" version: "16.04"
Actual version: "20.04"
Requirement matched.
Validating "kernel level " ...
Required minimum operating system kernel level: "3.10.0".
Actual operating system kernel level: "4.19.121".
Requirement matched.
Validating "ipcmni_extend kernel parameter " ...
WARNING : Requirement not matched.
ERROR:
The 'strings' utility that is used to detect prerequisite libraries
is not present on this system. Please use your package or software
manager to install the GNU Binary Utilities.
Validating "C++ Library version " ...
Required minimum C++ library: "libstdc++.so.6"
Standard C++ library is located in the following directory: "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28".
sh: 1: /usr/bin/file: not found
DBT3512W The db2prereqcheck utility failed to determine the currently-installed version of the C++ standard library, libstdc++.
Requirement matched.
Validating "libaio.so version " ...
DBT3553I The db2prereqcheck utility successfully loaded the libaio.so.1 file.
Requirement matched.
Validating "libnuma.so version " ...
DBT3552E The db2prereqcheck utility failed to open the libaio.so.1 file. Command output: "libnuma.so.1: cannot open shared object file: No such file or directory".
DBT3609E The db2prereqcheck utility could not find the library file libnuma.so.1.
ERROR : Requirement not matched.
Validating "/lib/i386-linux-gnu/libpam.so*" ...
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/i386-linux-gnu/libpam.so*".
WARNING : Requirement not matched.
Requirement not matched for DB2 database "Server" . Version: "11.5.5.0".
Summary of prerequisites that are not met on the current system:
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/i386-linux-gnu/libpam.so*".
DBT3609E The db2prereqcheck utility could not find the library file libnuma.so.1.
------------------------------
Jim Creasman
------------------------------
#Db2