Suppose you are compiling something from source code but it complains that you don’t have a dependency, here are a few things you can do.
- You can do a
swupd search
to check whether that thing is bundled. - It’s possible that you’ve already installed the dependency, but CL does not install its pkgconfig files by default. You just need to install the
devpkg-*
bundle. - If you know the file name of something you are missing, you can try
swupd search-file
. -
swupd search-file
is slow sometimes because it needs to download all package manifest. You can also go to https://github.com/clearlinux-pkgs and search there instead. You can filter the result by only shown RPM Spec file format. Suppose a packagefoo
contains that component, you can thenswupd search foo
to see which bundle contains that package. - In some cases, you will see something show up in the SPEC file of a package, but even after you installed that, the specific file your require may still don’t show up in your system. This is because sometimes a package is divided into multiple components, such as
foo-doc
andfoo-dev
, but CL only bundled a subset of those components. One way to deal with this is to go to https://cdn.download.clearlinux.org/releases/current/clear/x86_64/os/Packages/ and install the particular RPM. You can find information on how to install RPM on the forum.