LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2008, 04:35 AM   #1
tomisak
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Recompile an installed package? (10.2)


Hi all!

I am running Slackware 10.2.

I have installed apache-1.3.37-i486-1_slack10.2.tgz using installpkg.

In this package, the hard server limit (which is defined in /usr/include/apache/httpd.h) is set to 256.

I would like to increase this value.

My question is: What is the easiest way to re-compile / re-install apache with this change? Is it possible to do make changes like this on a package or do I have to download the sourcecode?

As you might understand, I am not very experienced with Slackware.

Thanks,
Tommy
 
Old 01-15-2008, 07:58 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Go to the salckware website and find the sources for Apache there. Download the SlackBuild script which accompanies the sources. Use the script to compile apache. You may need to alter the script slightly to use it with a current version of apache, though the best way to make sure you are getting a version and build which work with skacjkware would be to get the sources used by slackware -probably for the last stable version of slackware (12.0) or for 11.0 here:

ftp://ftp.slackware.at/slackware-11.0/source/n/apache/

Download everything in the directory to a directory where you have read-write permission and then just execute the SlackBuild script like this:

sh ./apache.SlackBuild

Of course you said you neede to make a change to the sources. The easiest way to do that is to manually unpack the sources and then edit the files needed and make a diff of the changes. Then add your diff file to list of diffs applied in the SlackBuild script. I usually use the gendiff program for creating patches as it is very easy to use. It's part of the rpm package. To create a diff with it just do as above, that is unpack the sources. Find which file(s) you need to change and create copies of them with a suffix like '.00'. Then, when finished cd into the toplevel of the sources and create the patch like this:
gendiff . .00 > ../mychanges.diff
 
Old 01-15-2008, 09:35 AM   #3
tomisak
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, that was very helpful!
 
  


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
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
how to recompile a installed program(mplayer) erik Linux - Software 3 01-12-2005 12:09 PM
recompile distro installed apache dmcanally Linux - Software 1 09-21-2004 04:25 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 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