Install missing build dependencies easily

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 c…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Install missing build dependencies easily." octowaddle | Sciencx - Monday April 19, 2021, https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/
HARVARD
octowaddle | Sciencx Monday April 19, 2021 » Install missing build dependencies easily., viewed ,<https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/>
VANCOUVER
octowaddle | Sciencx - » Install missing build dependencies easily. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/
CHICAGO
" » Install missing build dependencies easily." octowaddle | Sciencx - Accessed . https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/
IEEE
" » Install missing build dependencies easily." octowaddle | Sciencx [Online]. Available: https://www.scien.cx/2021/04/19/install-missing-build-dependencies-easily/. [Accessed: ]
rf:citation
» Install missing build dependencies easily | octowaddle | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.