ZOWE CLI DB2 Plug-in Installation issue for certain Linux versions
search cancel

ZOWE CLI DB2 Plug-in Installation issue for certain Linux versions

book

Article ID: 385782

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

The ibm_db dependency, which utilizes pre-built drivers to access DB2 and downloads those drivers at install time, is now pulling down drivers with a pre-requisite on the GNU C library (glibc) version 2.32, this means that users on some older yet still supported Linux distributions will encounter the following error message while attempting to install any version of the DB2 Plug-in. The known distributions affected include Ubuntu 20, Debian 11, CentOS 8, and Red Hat Enterprise Linux 8.


_____ Validation results for plugin '@zowe/db2-for-zowe-cli' _____

*** CmdError: Failed to combine command definitions. Reason = Encountered an error loading one of the files (cli/call/Call.definition.js) that matched the provided command module glob for the glob **/cli/*/*.definition!(.d).*s: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/<user>/.zowe/plugins/installed/lib/node_modules/@zowe/db2-for-zowe-cli/node_modules/ibm_db/installer/clidriver/lib/libdb2.so.1)

This plugin has command errors. No plugin commands will be available.

Environment

ZOWE CLI DB2 plugin

 

Resolution

Workaround: 

  • If the DB2 Plug-in version is below version 6.1.0 (including Enterprise Support for Zowe v2 LTS, and Enterprise Support for Zowe v3 LTS version 3.0.0), run the following command prior to installing the DB2 Plug-in:
    • export IBM_DB_INSTALLER_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/v11.5.9
  • If the DB2 Plug-in version is 6.1.0 or above (Enterprise Support for Zowe LTS version 3.1.0 and later), run the following command prior to installing the DB2 Plug-in:
    • export npm_config_clidriver=v11.5.9