LinuxQuestions.org
Help answer threads with 0 replies.
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 10-22-2009, 04:26 AM   #1
renjunix
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
How to build httpd-2.2.3-22 as a relocatable rpm package in RHEL 5.3


Hi Linux Experts,

Greetings to all. I'm a new member to this forum.

I’m looking forward to get the steps on How to build httpd-2.2.3-22 as a relocatable rpm package? I'm working on customizing RHEL 5.3.

I need to install Apache httpd-2.2.3-22 with supported versions of mod_ssl 2.2.3, mod_python (version 3.3.1), mod_perl 2.0.4, and mod_jk.
The most important thing is that we need to install all these applications under a different path like /abc/xyz_apps/, not under the default installation path. App configuration files must be under /abc/xyz_apps_config/
I changed the default path for --prefix option in httpd.spec file as follows
../configure \
--prefix=/abc
Then, I rebuilt the package using rpmbuild –bb httpd.spec.
Httpd is still not relocatable, even though I made a few changes to httpd.spec file and rebuilt the same.
1. Changed the default path to --prefix=/abc \
2. Added if statement to check whether the directory exists before removing $RPM_BUILD_ROOT%{_sysconfdir}/httpd/logs
3. Rebuilt the package successfully using rpmbuild –bb httpd.spec
4. Tried to install using rpm -ivh --prefix /abc/xyz_apps/apache/2.2.3 httpd-2.2.3-22.x86_64.rpm. However it failed with error: "package httpd is not relocatable"

Any help on this is appreciated.
Thanks and Regards,

Renju.
 
Old 10-23-2009, 06:42 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
http://rpm5.org/docs/api/relocatable.html
 
Old 11-02-2009, 03:40 AM   #3
renjunix
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post

Hi AlucardZero,

Thank for your reply. I had already tried those things. However, I'm still trying to figure out how this specific package can be made relocatable.

Thanks and Regards,
Renju.
 
Old 11-02-2009, 09:04 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
put one or more:

Code:
  Prefix: <dir>
in your spec file? Not sure what the problem is?
 
  


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
RHEL 5.1 basic - rpm-build missing (has something changed?) spankbot Red Hat 11 02-12-2013 09:28 AM
reinstalling the rpm build package Linden Goodwin Linux - Newbie 1 06-28-2009 06:44 PM
AIX relocatable package help vibhor_agarwalin AIX 0 05-06-2009 12:55 AM
Where can I download the build-essentials package for RHEL 4? ShaqDiesel Red Hat 3 08-29-2008 08:22 PM
Not able to install rpm-build package deepika Linux - Newbie 2 07-19-2003 09:45 PM

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

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