This content originally appeared on DEV Community and was authored by octowaddle
Who doesn't know the pain: You want to build a project from source and you are constantly getting errors because you are missing some required (pkg-config) dependencies. Your next step is probably to research the dependency and find out which package contains it, which is quite time-consuming and very annoying. But there is a way to make this process easier.
If you are using an RPM-based distribution (like Fedora) you can install a missing dependency like so:
$ sudo dnf install 'pkgconfig(missing_dependency)'
For DEB-based distributions (like Ubuntu) you can use:
$ sudo apt install $(apt-file search --package-only missing_dependency)
(Replace missing_dependency with the pkg-config name)
Unfortunately, you still have to research the dependency manually in other distributions.
This content originally appeared on DEV Community and was authored by octowaddle
octowaddle | Sciencx (2021-04-19T18:56:27+00:00) Install missing build dependencies easily. Retrieved from https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.