installed linux-2.6.21 and lzo-2.03. Now donot know how to include headers files.
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
installed linux-2.6.21 and lzo-2.03. Now donot know how to include headers files.
I have installed linux-2.6.21 and lzo-2.03 from source code in fedora core 7 in the same directory. Now I wanted to include header files of lzo library in the linux kernel source code. How to do that?
I have installed linux-2.6.21 and lzo-2.03 from source code in fedora core 7 in the same directory. Now I wanted to include header files of lzo library in the linux kernel source code. How to do that?
No idea, since your question is hard to understand. Do you have FC7? If so, did you upgrade the running system kernel, or just download kernel source into your home directory? Where do you want to put the LZO libraries?
I'm sure there's a way, but why bother?? Fedora core 7 is ancient...the latest version is 12, and 13 will be out shortly. Since as you say, this is a new install, you need to install something current, as this will make most things much easier.
I have installed lzo library in fedora core 7 linux-2.6.21 kernel and it was installed in /usr/local/include/lzo directory. Now I want to include the header files of lzo library (for example lzoconf.h, lzo1x.h, lzodefs.h) in the source code of linux (mm/vmscan.c).
I included the header files like this
#include<lzo/lzoconf.h>
#include<lzo/lzo1x.h>
When we compile the kernel it is showing some errors
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC mm/vmscan.o
mm/vmscan.c: error: lzo/lzoconf.h: No such file or directory
mm/vmscan.c: error: lzo/lzo1x.h: No such file or directory
make[1]: ***[mm/vmscan.o] Error 1
make: *** [mm] Error 2
I have installed lzo library in fedora core 7 linux-2.6.21 kernel and it was installed in /usr/local/include/lzo directory. Now I want to include the header files of lzo library (for example lzoconf.h, lzo1x.h, lzodefs.h) in the source code of linux (mm/vmscan.c).
I included the header files like this
#include<lzo/lzoconf.h>
#include<lzo/lzo1x.h>
When we compile the kernel it is showing some errors
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC mm/vmscan.o
mm/vmscan.c: error: lzo/lzoconf.h: No such file or directory
mm/vmscan.c: error: lzo/lzo1x.h: No such file or directory
make[1]: ***[mm/vmscan.o] Error 1
make: *** [mm] Error 2
How I resolve this problem? What shoud I do?
You've provided some more info, but your question still doesn't make much sense. Your include files are NOT installed in /usr/local/include, except for very specific things that you install there manually. The code you're looking for is not going to be in the system-wide includes, until you put it there. Either download the RPM development headers and install them, or read the instructions that came with the .gz file.
And again: FC7 is very, VERY old. It would be a much better idea to upgrade, than to spend time developing software for such an old platform.
while installing the linux-2.6.31 source code in fedora 12 I got an error
[root@pratyush linux-2.6.31]# make install
sh /home/parag/rpmbuild/SOURCES/linux-2.6.31/arch/x86/boot/install.sh 2.6.31 arch/x86/boot/bzImage \
System.map "/boot"
/sbin/new-kernel-pkg: line 277: /sbin/mkinitrd: No such file or directory
mkinitrd failed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.