I want to be able to recompile php, so I downloaded the src dvd and did a rpm -i php-4.3.9-3.15.src.rpm After doing that I wanted to check to see if I can recompile it before making changes. So, I went to the SPECS dir and did a rpmbuild -i php.spec It spent a lot of time doing the compile, but at the end there were errors. What am I missing? Todd -- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523
On Fri, Jan 12, 2007 at 07:18:59AM -0800, Todd Cary enlightened us:> I want to be able to recompile php, so I downloaded the src dvd and did a > > rpm -i php-4.3.9-3.15.src.rpm > > After doing that I wanted to check to see if I can recompile it before > making changes. So, I went to the SPECS dir and did a > > rpmbuild -i php.spec > > It spent a lot of time doing the compile, but at the end there were errors. > > What am I missing? >Telling us what the errors were, for starters. Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
On Friday 12 January 2007 16:18, Todd Cary wrote:> rpmbuild -i php.specMy rpmbuild doesn't have the option -i. If you just want to build the binary package I suggest "rpmbuild -bb php.spec" /Peter> It spent a lot of time doing the compile, but at the end there were errors. > > What am I missing?to post the actual errors? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070112/576e3bc2/attachment-0001.sig>
Peter - Whooops! You are correct! rpmbuild -ba php.spec I will try that... :-[ Todd Peter Kjellstrom wrote:> On Friday 12 January 2007 16:18, Todd Cary wrote: > >> rpmbuild -i php.spec >> > > My rpmbuild doesn't have the option -i. If you just want to build the binary > package I suggest "rpmbuild -bb php.spec" > > /Peter > > >> It spent a lot of time doing the compile, but at the end there were errors. >> >> What am I missing? >> > > to post the actual errors? > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523
I finally got a version of PHP with Interbase included, but I am not sure why it works versus using rpmbuild. Here is what I did: Using the php-4.3.9-3.15.src.rpm and running # rpm -i php.4.3.9-3.15.src.rpm I now have php-4.3.9.tar.gz in /usr/src/redhat/SOURCES. This is copied to /tmp and untarred. Moving to php.4.3.9-3, I run # ./configure -with-interbase=shared,/opt/firebird After a # make, I have interbase.so in the modules directory. This is copied to /usr/lib/php4 and I create a interbase.ini file in /etc/php.d that has a line, "include=interbase.so". That is it...long way around, but gosh darn, it works!!! Honestly, I am not sure of exactly what I did (at least I am not able to translate everything into what I do daily with Windoz and Delphi). I am sure some C++ experience would help me. Todd Todd Cary wrote:> I want to be able to recompile php, so I downloaded the src dvd and did a > > rpm -i php-4.3.9-3.15.src.rpm > > After doing that I wanted to check to see if I can recompile it before > making changes. So, I went to the SPECS dir and did a > > rpmbuild -i php.spec > > It spent a lot of time doing the compile, but at the end there were > errors. > > What am I missing? > > Todd >-- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523