rhel7.9 Failed to load Keytar module: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' #1587
-
For a CI/CD project we are installing Zowe CLI on rhel7.9 server. The goal is to use it in a Jenkins pipeline. When creating a profile we are receiving the following error: "Failed to load Keytar module: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21'"When listing out /usr/lib64/libstdc++.so.6.0.19 I see that we are indeed missing version 3.4.21
The Linux sysadmin seems to be struggling with it: Anyone bumped into this? Suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This sounds related to a recent roadblock we came across with CentOS 7 curl -fsSL https://rpm.nodesource.com/setup_14.x | bash - && yum install -y nodejs
yum install -y gcc-c++ libsecret-devel make python3 dbus-x11 gnome-keyring
npm install -g @zowe/cli --foreground-scripts --verbose
cd $(npm prefix -g)/lib/node_modules/@zowe/cli/node_modules/keytar && npm run build
mkdir -p $HOME/.local/share/keyrings
export $(dbus-launch) && echo root | gnome-keyring-daemon -r --unlock --components=secrets Notes:
|
Beta Was this translation helpful? Give feedback.
-
These commands are slightly out of date. You may want to use node 20
Also we don't have keytar as a dependency anymore, so you will have to try building the secrets SDK instead.
This may error out because of possible UPDATE: # Install Node.js and npm
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && sudo yum install -y nodejs npm
# Install other required dependendencies
sudo yum install -y gcc-c++ libsecret-devel make python3 dbus-x11 gnome-keyring wget
# Install the Zowe CLI
npm install -g @zowe/cli --foreground-scripts --verbose
# Replace keyring binary
cd $(npm prefix -g)/lib/node_modules/@zowe/cli/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds
sudo rm keyring.linux-x64-gnu.node
sudo wget https://github.com/zFernand0/cics-for-zowe-client/releases/download/v0.0.1/keyring.linux-x64-gnu.node
# Unlock the keyring
# You should be able to follow the Zowe documentation.
# https://docs.zowe.org/stable/user-guide/cli-configure-scs-on-headless-linux-os
# If that does not work you can try the commands below to setup a known dbus_address
# export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
# if [ ! -e "$bus_file_path" ]; then
# /usr/bin/dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile &
# fi
# echo <sudo-password> | gnome-keyring-daemon -r --unlock --components=secrets
# export GNOME_KEYRING_CONTROL=$XDG_RUNTIME_DIR/keyring |
Beta Was this translation helpful? Give feedback.
This sounds related to a recent roadblock we came across with CentOS 7
With @t1m0thyj 's help, we came up with this little script.
Notes:
sudo
access.--foreground-scripts --verbose
are there to help diagnose other issues that may occur.zow…