Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 07-09-2007, 03:16 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 18

Rep: Reputation: 0
"../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.
Old 07-09-2007, 11:31 PM   #2
LQ Newbie
Registered: Jul 2007
Location: Palangkaraya, Kalteng, Indonesia
Distribution: Slackware, Debian, Xubuntu
Posts: 7

Rep: Reputation: 0
Did you have kernel header under /usr/include ? If you dont have it, get kernel header source first same as your kernel version.
Old 01-22-2008, 01:09 AM   #3
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
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

Old 09-08-2008, 03:07 PM   #4
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
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.
Old 02-05-2009, 03:36 AM   #5
LQ Newbie
Registered: Feb 2009
Location: Khimki, Russian Federation
Distribution: Linux From Scratch 6.3
Posts: 2

Rep: Reputation: 0
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

It works.

Last edited by [hiMik]; 02-05-2009 at 03:45 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
SELinux "Multiple same specifications" annoyance lonecrow Linux - Software 1 06-09-2007 12:12 AM
SElinux // error in file system check // Please Help nomb Fedora 1 03-05-2007 11:51 AM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 08:16 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration