Apple Silicon processor installation for IBM Db2 Database Plug-in
Apple Silicon processor installation for IBM Db2 Database Plug-in
The IBM ODBC DB2 driver functions only on MacOS x86_64 architecture.
Use the following steps to configure an M1 (or later architecture) processor to behave as MacOS x86_64 architecture so that it can communicate with the IBM ODBC DB2 driver.
-
Install Rosetta. Open a terminal window and issue the following command:
softwareupdate --install-rosetta --agree-to-license
-
Modify
~/.zshrc
to contain the following syntax:alias arm="env /usr/bin/arch -arm64 /bin/zsh --login"
alias intel="env /usr/bin/arch -x86_64 /bin/zsh --login" -
Source the new file by issuing the following command:
~/.zshrc
-
Switch to the x86_64 architecture by issuing the following command:
intel
-
Reinstall Zowe CLI.
-
After you complete these steps, do one of the following:
-
If you are installing the plug-in from an online registry, continue with Step 2 in Installing from an online registry.
-
If you are installing the plug-in from a local package, continue with Step 2 in Installing from a local package.
-
You must issue the intel
command every time that you open a new terminal window to ensure that the DB2 plug-in functions properly on x86_64 architecture.