error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
PAI Installer v3.0 fails on RHEL/CentOS 9 — missing libnss3.so
Environment:
- OS: RHEL/CentOS 9 (Linux 5.14.0-611.24.1.el9_7.x86_64)
- Arch: x86_64
- Bun: v1.3.9
- Git: 2.47.3
- Claude Code: installed
- PAI Installer: v3.0
- Electron: (bundled in PAI-Install/electron/node_modules/electron/)
Preflight checks all pass:
- curl, Git, Bun, Claude Code all detected successfully
Error:
pai-installer@3.0.0 start
electron .
~/.claude/PAI-Install/electron/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Exit code: 127
Root cause:
The Electron GUI requires libnss3.so (from the NSS libraries), which is not installed on the system. On RHEL/EL9 this is provided by the nss package. Electron also commonly requires libatk-1.0,
libatk-bridge-2.0, libcups, libdrm, libgbm, libgtk-3, libxkbcommon, and others.
Suggested fix options:
- Add a preflight check for Electron's required system libraries and surface a clear error message listing which packages to install
- Provide a headless/CLI fallback for systems without a full desktop library stack
- Document the required system packages per distro (e.g., sudo dnf install nss atk at-spi2-atk cups-libs libdrm mesa-libgbm gtk3 libxkbcommon for RHEL 9)
error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
PAI Installer v3.0 fails on RHEL/CentOS 9 — missing libnss3.so
Environment:
Preflight checks all pass:
Error:
~/.claude/PAI-Install/electron/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Exit code: 127
Root cause:
The Electron GUI requires libnss3.so (from the NSS libraries), which is not installed on the system. On RHEL/EL9 this is provided by the nss package. Electron also commonly requires libatk-1.0,
libatk-bridge-2.0, libcups, libdrm, libgbm, libgtk-3, libxkbcommon, and others.
Suggested fix options: