Skip to content

Linux binary needs libdbus-1.so.3, so icp fails to start in ghcr.io/dfinity/icp-dev-env:22 and other images without it #888

Open

Description

@guryanov-a

What happened

The Linux x64 binary installed from npm (@icp-sdk/icp-cli) is dynamically linked against libdbus-1.so.3. In an image without that library, including dfinity's own ghcr.io/dfinity/icp-dev-env:22, icp does not start:

$ docker run --rm --platform linux/amd64 ghcr.io/dfinity/icp-dev-env:22 bash -c \
    'npm i -g --silent @icp-sdk/[email protected] && icp --version'
/root/.nvm/versions/node/v22.10.0/lib/node_modules/@icp-sdk/icp-cli/node_modules/@icp-sdk/icp-cli-linux-x64/bin/icp: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: No such file or directory

ldd on the binary shows libdbus-1.so.3 => not found. The same happens with 0.3.2.

After apt-get install -y libdbus-1-3, icp --version prints icp 1.8.0.

Expected

Either icp starts without libdbus (for example by loading it only when the keyring backend is used, or by building the Linux release with a keyring backend that does not link D-Bus), or the install docs list libdbus-1-3 as a requirement on Linux. icp-dev-env could also ship the library.

Environment

  • icp-cli 1.8.0 and 0.3.2 from npm (@icp-sdk/icp-cli, @icp-sdk/icp-cli-linux-x64)
  • ghcr.io/dfinity/icp-dev-env:22 (Debian 12.8, Node v22.10.0), run as linux/amd64

Workaround

apt-get install -y libdbus-1-3 before running icp.

Written by Claude Opus 5.5 in Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions