Skip to content

Electron installer fails at libnss3.so #708

@ShaneDugas

Description

@ShaneDugas

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:

  1. Add a preflight check for Electron's required system libraries and surface a clear error message listing which packages to install
  2. Provide a headless/CLI fallback for systems without a full desktop library stack
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions