(Applying patch to the Kernal) TUX httpd accelerator in CentOS 5
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(Applying patch to the Kernal) TUX httpd accelerator in CentOS 5
Hi everyone,
I have installed the tux-3.2.18-9.fc6.i386.rpm succefully in CentOS 5. I have got the following error, when I apply the patch tux3-2.6.18-1 to the kernal.
File to patch: /tmp/tux/tux3-2.6.18-1
patching file /tmp/tux/tux3-2.6.18-1
Hunk #1 FAILED at 240.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux/tux3-2.6.18-1.rej
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/i386/kernel/syscall_table.S
|===================================================================
|--- linux.orig/arch/i386/kernel/syscall_table.S
|+++ linux/arch/i386/kernel/syscall_table.S
--------------------------
File to patch: /tmp/tux/tux3-2.6.18-1
patching file /tmp/tux/tux3-2.6.18-1
Hunk #1 FAILED at 221.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux/tux3-2.6.18-1.rej
can't find file to patch at input line 46
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/ia64/kernel/entry.S
|===================================================================
|--- linux.orig/arch/ia64/kernel/entry.S
|+++ linux/arch/ia64/kernel/entry.S
--------------------------
File to patch: /tmp/tux//tux3-2.6.18-1
patching file /tmp/tux//tux3-2.6.18-1
Hunk #1 FAILED at 1427.
1 out of 1 hunk FAILED -- saving rejects to file /tmp/tux//tux3-2.6.18-1.rej
can't find file to patch at input line 66
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux/arch/ia64/kernel/ia64_ksyms.c
|===================================================================
|--- linux.orig/arch/ia64/kernel/ia64_ksyms.c
|+++ linux/arch/ia64/kernel/ia64_ksyms.c
--------------------------
I will be very thankful if someone can give me usefull suggestion.
Centos 5.5 currently is at kernel 2.6.18-194.32.1.el5 so a patch for kernel 2.6.18-1 won't work without maximum --fuzz (and even then). Where did you get the patch from and what is it needed for?
Actually, i want to make a simple webserver program, that handles multiples requests through any of the two procedures (i.e. Prefork process or thread process). Therefore, I am installing a TUX webserver. As, the procedures of installing it is given at the link (http://people.redhat.com/mingo/TUX-p...kStart-TUX.txt), I am following this procedures with the new version files available in TUX patches. Therefore during installation when i apply patch to the kernal i got an error.
I will be very thankfull if you kindly help me in this regard.
As, the procedures of installing it is given at the link (http://people.redhat.com/mingo/TUX-p...kStart-TUX.txt), I am following this procedures with the new version files available in TUX patches. Therefore during installation when i apply patch to the kernal i got an error.
Posting exact error messages (attach as plain text?) would be more helpful than talking about them.Also note if you compare http://people.redhat.com/mingo/TUX-p.../tux3-2.6.18-1 and http://www.takatan.net/lxr/source/ne...2.6.18-194.el5 they're the same, ergo 2.6.18-194.el5 comes with the TUX patches. (Sure I could have read changelogs to find that out but why not look at and compare code when you can?..) Maybe just recompile the 2.6.18-194.el5 and check for "CONFIG_TUX_MODULE"?
Quote:
Originally Posted by furqan556
Actually, i want to make a simple webserver program, that handles multiples requests through any of the two procedures (i.e. Prefork process or thread process). Therefore, I am installing a TUX webserver.
Apache is a userland application, meaning process or thread-handling behaviour is based on the userland libraries (APR, NPTL?). I doubt you can compare userland threading with kernel-level threading 1:1 (but then again I'm not much into concepts like semphores, mutex atomics and CAS any more than what "Understanding the Linux Kernel" tells me so if I'm wrong just tell me).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.