php-gd

Hi folks,
I think I need some pointers here. I have a fc6 running apache/php
5.1.6. By default, gd lib in not included in php. To include it, you
need to re-compile php with gd. All works well until here.

But, what if I also want to be able to update php5 automatically, as
the updates are released. Traditionally, once to recompile anything,
it can no be updated through update manager...

So, any ideas?

cheers,
Ozz
usman.cs [ Fr, 27 April 2007 21:13 ] [ ID #1699396 ]

Re: php-gd

Ozz wrote:
> Hi folks,
> I think I need some pointers here. I have a fc6 running apache/php
> 5.1.6. By default, gd lib in not included in php. To include it, you
> need to re-compile php with gd. All works well until here.
>
> But, what if I also want to be able to update php5 automatically, as
> the updates are released. Traditionally, once to recompile anything,
> it can no be updated through update manager...

You can make your own RPM based on the official, you donwload the *.src.rpm
and install it: rpm -i package.src.rpm

Now go to /usr/src/fedora/SPECS and edit the php.spec and just add the gd
option to configure, save the spec and then build it with:
rpmbuild -ba /usr/src/fedora/SPECS/php.spec

When finished you have a new RPM in /usr/src/fedora/RPMS/{def-arch}/

Of course next time you auto update you will loose the gd support if it's not
built in by Fedora.

Otherwise you can switch to a meta-distribution like Gentoo, where you can
select which options should be compiled into each package and you will get
that each time you upgrade.

--

//Aho
Shion [ Sa, 28 April 2007 07:57 ] [ ID #1700191 ]

Re: php-gd

Thanks Aho.

On Apr 27, 10:57 pm, "J.O. Aho" <u... [at] example.net> wrote:
> Ozz wrote:
> > Hi folks,
> > I think I need some pointers here. I have a fc6 running apache/php
> > 5.1.6. By default, gd lib in not included in php. To include it, you
> > need to re-compile php with gd. All works well until here.
>
> > But, what if I also want to be able to update php5 automatically, as
> > the updates are released. Traditionally, once to recompile anything,
> > it can no be updated through update manager...
>
> You can make your own RPM based on the official, you donwload the *.src.rpm
> and install it: rpm -i package.src.rpm
>
> Now go to /usr/src/fedora/SPECS and edit the php.spec and just add the gd
> option to configure, save the spec and then build it with:
> rpmbuild -ba /usr/src/fedora/SPECS/php.spec
>
> When finished you have a new RPM in /usr/src/fedora/RPMS/{def-arch}/
>
> Of course next time you auto update you will loose the gd support if it's not
> built in by Fedora.
>
> Otherwise you can switch to a meta-distribution like Gentoo, where you can
> select which options should be compiled into each package and you will get
> that each time you upgrade.
>
> --
>
> //Aho
usman.cs [ Di, 01 Mai 2007 20:07 ] [ ID #1702168 ]
PHP » alt.php » php-gd

Vorheriges Thema: Captcha
Nächstes Thema: designer and noob with an "empty expression" question