I don’t know if the title of the post properly describes my situation, but sometimes when I try to install an application from AUR it says error making cause some dependencies are missing, I want through this problem right now when I tried to install kooha-git package on AUR:
Source dir: /home/denielton/.cache/yay/kooha-git/src/kooha
Build dir: /home/denielton/.cache/yay/kooha-git/src/build
Build type: native build
Project name: kooha
Project version: 2.2.2
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.66.0)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.39.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Found CMake: /usr/bin/cmake (3.25.1)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency glib-2.0 found: NO (tried cmake)
kooha/meson.build:14:0: ERROR: Dependency lookup for glib-2.0 with method 'pkgconfig' failed: Pkg-config binary for machine 1 not found. Giving up.
A full log can be found at /home/denielton/.cache/yay/kooha-git/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
-> error making: kooha-git
So I installed cmake and pkgconf and things worked fine, but how can I install all the dependencies related to an application so I don’t have to do it manually? I don’t have a great knowledge about Linux so I can’t always solve problems like this, this time I was able to deduce that these specific applications were missing, but is there any way to know what dependencies I need to avoid errors like this?