php problem with gd library

php problem with gd library

am 27.09.2007 17:05:28 von Mamba

hello to everyone,
I'm using Mantis bug tracking system on Ubuntu Server with
apache2, mysql 5.1 and php5.
Mantis uses jpgraph for graphics but when I call a graphic page,
Jpgraph return this error:
Fatal error: Call to undefined function imageantialias() in /var/www/
jpgraph-2.2/src/jpgraph.php on line 5586
that is a call to imageantialias() function of PHP!
I installed php5 and php5-gd package with apt-get, configured php.ini
and apache2 (phpinfo() tell me that gd support is enabled).everything
works fine but not graphics.
Can anyone help me?
please !!!

thanks in advance

Re: php problem with gd library

am 27.09.2007 18:53:18 von petersprc

Hi,

FYI, there is a workaround for this here:

https://bugs.launchpad.net/ubuntu/+source/php5/+bug/74647/co mments/6

You can also compile PHP from the source. The version of GD that comes
bundled with PHP is different from the standard GD that php5-gd uses.

On Sep 27, 10:05 am, Mamba wrote:
> hello to everyone,
> I'm using Mantis bug tracking system on Ubuntu Server with
> apache2, mysql 5.1 and php5.
> Mantis uses jpgraph for graphics but when I call a graphic page,
> Jpgraph return this error:
> Fatal error: Call to undefined function imageantialias() in /var/www/
> jpgraph-2.2/src/jpgraph.php on line 5586
> that is a call to imageantialias() function of PHP!
> I installed php5 and php5-gd package with apt-get, configured php.ini
> and apache2 (phpinfo() tell me that gd support is enabled).everything
> works fine but not graphics.
> Can anyone help me?
> please !!!
>
> thanks in advance

Re: php problem with gd library

am 28.09.2007 13:52:28 von colin.mckinnon

On 27 Sep, 17:53, petersprc wrote:
> Hi,
>
> FYI, there is a workaround for this here:
>
> https://bugs.launchpad.net/ubuntu/+source/php5/+bug/74647/co mments/6
>
> You can also compile PHP from the source. The version of GD that comes
> bundled with PHP is different from the standard GD that php5-gd uses.
>
> On Sep 27, 10:05 am, Mamba wrote:
>
> > hello to everyone,
> > I'm using Mantis bug tracking system on Ubuntu Server with
> > apache2, mysql 5.1 and php5.
> > Mantis uses jpgraph for graphics but when I call a graphic page,
> > Jpgraph return this error:
> > Fatal error: Call to undefined function imageantialias() in /var/www/
> > jpgraph-2.2/src/jpgraph.php on line 5586
> > that is a call to imageantialias() function of PHP!
> > I installed php5 and php5-gd package with apt-get, configured php.ini
> > and apache2 (phpinfo() tell me that gd support is enabled).everything
> > works fine but not graphics.
> > Can anyone help me?
> > please !!!
>
> > thanks in advance

I've recently had problems with GD on an Ubuntu box - the packages in
standard repositories are rather old (and I couldn't dind dev
versions) - so I installed GD from source - http://www.boutell.com/gd/

C.

Re: php problem with gd library

am 28.09.2007 17:03:39 von Mamba

>
> I've recently had problems with GD on an Ubuntu box - the packages in
> standard repositories are rather old (and I couldn't dind dev
> versions) - so I installed GD from source -http://www.boutell.com/gd/
>
> C.

thanks to all for responses!

Well... I removed php5-gd and php5 packages, reinstalled php5 from
sources with the options "--with-gd --enable-gd " and everythings
works now!

By the way the workarount in the link above did not work for me :-(
I extracted gd-bundled.so from the package of Mandriva as explained in
the link ( I didn't found any .deb package with this library!!) and
copied in /usr/lib but the error is still present.
Must I register this library? if yes, how can I do ?
also I installed GD from source but I didn't found gd-bundled.so in
sources!
thanks