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 searchto 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-fileis slow sometimes because it needs to download all package manifest. You can also go to clearlinux-pkgs · GitHub and search there instead. You can filter the result by only shown RPM Spec file format. Suppose a packagefoocontains that component, you can thenswupd search footo 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-docandfoo-dev, but CL only bundled a subset of those components. One way to deal with this is to go to Index of /releases/current/clear/x86_64/os/Packages/ and install the particular RPM. You can find information on how to install RPM on the forum.
