LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2010, 12:58 PM   #1
rakeshjadli
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Installing Complied Apache using yum in RHEL 5


Hi, I have completely lost my touch with RedHat, so I hope someone can understand and help me here.

I am using RHEL 5.4
Here is my requirement.
- The ultimate aim is to install LAMP using yum.
- The Apache Spec (httpd.spec) is customized, like the location of the apache installation is /usr/local/apache2 rather than /usr.
So I need to compile apache source code using this customized apache spec.
- I need to then install this apache using YUM.


So my understanding is I need to compile apache , then add into yum repository or something like that, so that yum can be used to install apache.

Thanks for your help.

Jads
 
Old 02-20-2010, 01:14 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Why do you need to install it with yum? yum itself is just a repository management / dependency tool, it doesn't actually install anything, it's still the RPM libraries underneath doing it. So if you do install something via yum automagically, or install manually using the rpm command locally on the box, the end result will be exactly the same.
 
Old 02-20-2010, 05:14 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'yum localinstall my-httpd-...'
or : 'yum --nogpgcheck localinstall my-httpd-...'

can be used, if there are some dependencies to
be fetched from the repo during the install.

.....
 
Old 02-21-2010, 10:13 PM   #4
rakeshjadli
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks anyways

Quote:
Originally Posted by knudfl View Post
'yum localinstall my-httpd-...'
or : 'yum --nogpgcheck localinstall my-httpd-...'

can be used, if there are some dependencies to
be fetched from the repo during the install.

.....

Thanks. This did not solve my issue.

Where can I get a list of dependencies for the latest apache stable version (2.2.14 + with patch).

Cheers,
Jads
 
Old 02-22-2010, 07:01 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This package, the httpd-2.2.13 source code ...
http://download.fedora.redhat.com/pu...4.fc12.src.rpm
> > httpd-2.2.13-4.fc12.src.rpm → → the file 'httpd.spec' ...
Please read the lines "BuildRequires:" to know the dependencies.

And I just found this : httpd-2.2.14-1.fc13.src.rpm
http://download.fedora.redhat.com/pu...1.fc13.src.rpm

Documentation httpd 2.2.xx
http://httpd.apache.org/docs/2.2/


Setting up the rpmbuild environment in /home/<user>/
http://www.linuxquestions.org/questi...5.1-766486/#13
.....
Attached Files
File Type: txt httpd-2.2.13-1el5.spec.txt (14.5 KB, 23 views)
File Type: txt httpd-2.2.14-1.fc13.spec.txt (14.7 KB, 14 views)

Last edited by knudfl; 02-22-2010 at 08:58 AM.
 
  


Reply


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
yum and RHEL 5.1 bic Red Hat 3 06-12-2008 08:39 AM
YUM on RHEL 4.0?? ajeetraina Linux - Newbie 1 06-02-2008 09:34 AM
Problem with yum installing djvu using freshrpms repositories , RHEL, x86_64 saak.stepi Linux - Software 7 01-15-2008 08:08 PM
Yum on RHEL Atmchicago Red Hat 2 07-29-2006 05:12 PM
Yum in RHEL 4 IcoNyx Linux - Software 2 09-19-2005 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 PM.

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