Trying to install Github desktop but getting errors…

/bin/sh: line 1: pkg-config: command not found
gyp: Call to ‘pkg-config --cflags libsecret-1’ returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (node:events:378:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.9.16-1-MANJARO
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/zartilas/github-desktop/src/desktop/node_modules/keytar

==> ERROR: A failure occurred in build().
Aborting…

What is the exact problem here?

First of all, when pasting terminal output, highlight it and use the Preformatted text </> button.

Alternatively, add three backticks ` above and below the text:

```
text
```

You’re missing the base-devel group which is a requirement for building AUR (Arch User Repository) packages.

sudo pacman -Syu --needed base-devel

pacman -S pkg-config

THIS IS WHAT LOGIC SAYS
NOT SOME PACKAGE, THE PRODUCT.

:roll_eyes:

pkgconf (provides pkg-config) is part of the base-devel group. The base-devel group is required to use the AUR. Therefore, install the base-devel group. Is that good enough logic for you?

The Arch Wiki says:

First ensure that the necessary tools are installed by installing the base-devel group in full which includes make and other tools needed for compiling from source.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.