LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-10-2006, 08:05 AM   #1
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Rep: Reputation: 16
php tarball to rpm troubles


i've seen this type of problem around, but I have hit a few snags. any help would be appreciated, but this is a fairly convoluted problem.

I am running Redhat 9. I want to upgrade my php to the latest version...or at least php version 4.3.11 (for security reasons). on a separate backup machine, i used the rpmbuild command to convert the latest tarball into an rpm, like is mentioned at other places in this site.

while building however, I got the error that my apache server was out-of-date (v.2.0.40), and needed to upgrade to at least apache 2.0.44. i am trying to make this a shared module, and configure it like '--with-apxs2=/usr/sbin/apxs'. when i upgraded to the recommended apache, the configure and build succeeds.

a source rpm is then created at the /src/usr/redhat/SRPMS folder entitled php-4.3.11.src.rpm.

the problems i have now are:

1) when I try to build/install the source rpm, no binary rpm appears at all. nothing shows up under the /src/usr/redhat/RPMS folder. could this be a problem with the original spec file? this is the first time I have tried to make a tarball an rpm, so maybe i am missing something basic here.

2) i had to upgrade apache above. on my production server, will i have upgrade apache on that machine? or can i just take this binary php rpm and install it with no apache upgrade? the 2.0.44 dependency only came up in the configure stage of building, after all.

Last edited by gatsby; 04-10-2006 at 08:08 AM.
 
Old 04-11-2006, 10:06 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Why build a .src.rpm at all? Why not go directly from tarball to binary .rpm with: rpmbuild -tb <filename>.spec?

Last edited by bigrigdriver; 04-11-2006 at 10:07 PM.
 
Old 04-13-2006, 12:18 PM   #3
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 16
followup

Thanks for the reply. After trying the command rpmbuild -ta <tarball>, I get the error:

error: No compatible architectures found for build

Last edited by gatsby; 04-13-2006 at 12:20 PM.
 
  


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
can download tarball, but not RPM ylts Linux - Networking 11 04-15-2005 01:58 AM
I need RPM to tarball conversion mhelliwell Linux - General 3 03-18-2005 10:11 AM
Suse 9.2 rpm vs. tarball installations ursahoribl Linux - Newbie 1 02-14-2005 12:18 AM
anjuta configuration - both tarball and rpm gjmwalsh Mandriva 3 08-31-2004 01:40 PM
how to make RPM packages off a tarball? chupacabra Linux - General 2 10-15-2002 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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