Skip to content

docs: add Linux system library prerequisites for building from source#817

Open
octo-patch wants to merge 1 commit into
ValueCell-ai:mainfrom
octo-patch:fix/issue-352-linux-system-deps
Open

docs: add Linux system library prerequisites for building from source#817
octo-patch wants to merge 1 commit into
ValueCell-ai:mainfrom
octo-patch:fix/issue-352-linux-system-deps

Conversation

@octo-patch
Copy link
Copy Markdown
Contributor

Fixes #352

Problem

When building ClawX from source on Ubuntu/Debian, the Electron binary fails to start because required system shared libraries are missing:

error while loading shared libraries: libnspr4.so: cannot open shared object file: No such file or directory
ELIFECYCLE  Command failed.

The pnpm run init command installs Node.js dependencies but does not install OS-level system libraries required by Electron.

Solution

Add a Linux prerequisites note to the Development section of all three README files (EN/ZH/JA), listing the apt packages that must be installed before running pnpm dev.

The package list matches the runtime dependencies already declared in electron-builder.yml for the .deb package target, ensuring development environments align with what's required in production builds.

Testing

Verified that the listed packages correspond to the deb.depends entries in electron-builder.yml and cover libnspr4 (pulled in by libnss3) which is the specific library reported as missing in the issue.

…fixes ValueCell-ai#352)

When building ClawX from source on Ubuntu/Debian, Electron requires several
system shared libraries that are not installed by default. Without them, running
`pnpm dev` fails with errors like:
  libnspr4.so: cannot open shared object file: No such file or directory

Add a Linux prerequisites note to the Development section of all three README
files (EN/ZH/JA) listing the apt packages that must be installed. The package
list matches the runtime dependencies declared in electron-builder.yml for the
.deb package, ensuring development environments match production requirements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

During Install ELIFECYCLE  Command failed - shared libraries

1 participant