LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-09-2007, 03:16 AM   #1
ashmita04
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
mujie
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
abhi_linux
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

thanks
 
Old 09-08-2008, 03:07 PM   #4
LeenHaptors
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
[hiMik]
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 http://www.sfr-fresh.com/linux/misc/...static.tar.gz/

It works.

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:55 AM.

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