Hi,
I have been trying different Linux distributions lately to learn as much as about Linux. Lately, I have encountered with installing packages from source while trying to learn about the core elements of Linux while installing LFS. I have managed to install some packages from the source, but there is no standard in the process. Yes, the general approach is to first configure, then make, then make install but from package to package this changes a lot. And I haven't yet found an approach to deal with any package I want to install.
For example, I am trying to install dpkg package manager and I managed to successfully install all the dependencies except one; libselinux1. There is no configure file in the folder after extracting the tarball, so I thought I should go with make step first, skipping configure. But, it did not work and I have got an error saying:
Fatal Error: sepol/sepol.h: No such file or directory
15 | #include <sepol/sepol.h>
My question is how can I know how to install any package from source without using package managers? And more specifically, how can I install this package?
Many thanks for any help!
Edit1: I'm using LFS 10.0 and went even beyond BLFS i.e. installing packages outside BLFS's scope .
Edit2: I have attached a photo of the output, it's the same when I try only "make". I can't take screenshot since I have not yet know how to do so in LFS.
I have been trying different Linux distributions lately to learn as much as about Linux. Lately, I have encountered with installing packages from source while trying to learn about the core elements of Linux while installing LFS. I have managed to install some packages from the source, but there is no standard in the process. Yes, the general approach is to first configure, then make, then make install but from package to package this changes a lot. And I haven't yet found an approach to deal with any package I want to install.
For example, I am trying to install dpkg package manager and I managed to successfully install all the dependencies except one; libselinux1. There is no configure file in the folder after extracting the tarball, so I thought I should go with make step first, skipping configure. But, it did not work and I have got an error saying:
Fatal Error: sepol/sepol.h: No such file or directory
15 | #include <sepol/sepol.h>
My question is how can I know how to install any package from source without using package managers? And more specifically, how can I install this package?
Many thanks for any help!
Edit1: I'm using LFS 10.0 and went even beyond BLFS i.e. installing packages outside BLFS's scope .
Edit2: I have attached a photo of the output, it's the same when I try only "make". I can't take screenshot since I have not yet know how to do so in LFS.
Attachments
Last edited: