[NTLUG:Discuss] Updating PHP via RPMS...
MadHat
madhat at unspecific.com
Mon Oct 13 15:25:53 CDT 2003
On Mon, 2003-10-13 at 14:57, Alton R. Pouncey, II wrote:
> On Mon, 2003-10-13 at 13:38, NTLUG wrote:
> > I have a RH7.3 machine w/ PHP, the php version (from RPM is
> > php-4.1.2-7.3.6). I have a short term need for php-4.2.2-8.0.8 which is
> > from RH8.0.
> >
> > Has anyone put the RH8 PHP Rpms on a RH7.3 machine? I want to try and
> > avoid having to compile, because I don't have a lot of room for dealing
> > with problems.
> >
>
> If you can find the source rpm (even for RH 8), you should be able to
> download that rpm then do:
>
> rpm --rebuild <php-whatever.src.rpm>
>
> This will rebuild the rpm for your machine and create a new rpm for you
> (I forget where the new rpm ends up in the filesystem). Then you can
> just rpm -ivh that new rpm.
>
/usr/src/redhat/RPMS/<ARCH> is where the new RPM will be located in most
cases.
On newer version of rpm it is rpmbuild.
rpmbuild --target i686 --rebuild blah.src.rpm
I recommend using the target or setting it in the configs so you get the
best performance possible (though in many instances you won't notice the
difference).
I have a .rpmrc that I use. It has but one line
optflags: i686 -O3 -march=i686 -funroll-all-loops -fomit-frame-pointer
-Wall -ffast-math
I stole it from somewhere, but I can't remember where.
--
MadHat at Unspecific.com
`But I don't want to go among mad people,' Alice remarked.
`Oh, you can't help that,' said the Cat: `we're all mad here...'
-- Lewis Carroll - _Alice's_Adventures_in_Wonderland_
More information about the Discuss
mailing list