You tried to install the DB2 plugins from the zowe-cli-plugins-version package and encountered this error :
_____ 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: Could not locate the bindings file.
This plugin has command errors. No plugin commands will be available.
Windows O/S
Zowe CLI (7.29.10)
db2-for-zowe-cli
IBM introduced an error in their DB2 ODBC install script.That install script worked in past versions of the install script. IBM corrected the problem in the latest version of their install script. However, Zowe CLI 7.29.10 uses the version of the IBM ODBC install script that has the problem.
You do NOT have to compile the ODBC driver. You can force the ODBC installer script to do the right thing by setting an additional environment variable.
You should be able to install the db2-for-zowe-cli plugin again.
set IBM_DB_INSTALLER_URL=C:\odbc_cli
set npm_config_clidriver=.
Note the syntax for setting up the environment variables are different, for example,
Using powershell
$env:IBM_DB_INSTALLER_URL="fullPathToZip"
$env:npm_config_clidriver="."
Using bash:
export IBM_DB_INSTALLER_URL="fullPathToZip"
export npm_config_cli_driver="."
By taking these actions, the installation of the DB2 plugin will complete successfully and will display the following results:
> zowe plugins install db2-for-zowe-cli.tgz
Plug-ins within the Imperative CLI Framework can legitimately gain
control of the zowe CLI application during the execution of every command.
Install 3rd party plug-ins at your own risk.
Registry = https://registry.npmjs.org/
_______________________________________________________________
Installed plugin name = '@zowe/db2-for-zowe-cli'
_____ Validation results for plugin '@zowe/db2-for-zowe-cli' _____
This plugin was successfully validated. Enjoy the plugin.
> zowe plugins list
Installed plugins:
-- pluginName: @zowe/db2-for-zowe-cli
-- package: @zowe/db2-for-zowe-cli
-- version: 5.0.13
-- registry: https://registry.npmjs.org/
Use the following command to check if the plug-in was installed successfully:
zowe plugins validate
zowe db2 --help
If there are errors, manually run the driver install script:
For windows, replace "<zoweHomeDir>" with your Zowe CLI home directory (for example "C:\Users\User\.zowe").
cd <zoweHomeDir>\plugins\installed\lib\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db
node installer\driverInstall.js
For Linux/Mac, replace "<zoweHomeDir>" with your Zowe CLI home directory (for example "~/.zowe").
cd <zoweHomeDir>/plugins/installed/lib/node_modules/@zowe/db2-for-zowe-cli/node_modules/ibm_db
node installer/driverInstall.js