LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   "../system.h :selinux/selinux.h:no such file or directory" (https://www.linuxquestions.org/questions/linux-from-scratch-13/system-h-selinux-selinux-h-no-such-file-or-directory-567750/)

ashmita04 07-09-2007 03:16 AM

"../system.h :selinux/selinux.h:no such file or directory"
 
this is the error i encountered while building rpm from source version 4.2.2.

i have installed beecrypt,neon,zlib,db as its dependies.
now i m struck here.

mujie 07-09-2007 11:31 PM

Did you have kernel header under /usr/include ? If you dont have it, get kernel header source first same as your kernel version.

abhi_linux 01-22-2008 01:09 AM

kernel header soruce
 
../system.h :selinux/selinux.h:no such file or directory"
this is the error i encountered while building rpm from source version 4.2.2.

as u said it requires kernel header source ....can u suggest me where do i get kernel header source for red hat linux version 2.4.27-2-386

thanks

LeenHaptors 09-08-2008 03:07 PM

Fix - Solution
 
I had the same problem and fixed it. Yes you'll need the kernel headers--I would suggest getting them from whatever your yum/apt-get/whatever package manager.

However on the make file, try including the direct path to your source as an include flag:

make -I /usr/src/kernels/2.6.18/

See if that gets you anywhere.

[hiMik] 02-05-2009 03:36 AM

Had the same problem. But i need "rpm" only for rpm2cpio (what for else in LFS?) to unpack rpm's from different distro.

Found static rpm2cpio and cpio in here http://www.sfr-fresh.com/linux/misc/...static.tar.gz/

It works.


All times are GMT -5. The time now is 03:37 AM.