Re: GD configuration problem

From: Date: Tue, 22 Nov 2022 11:28:22 +0000
Subject: Re: GD configuration problem
References: 1 2  Groups: php.install 
Request: Send a blank email to [email protected] to get a copy of this message
On 21.11.2022 at 20:04, [email protected] wrote:

> I'm having trouble getting PHP to admit that the GD package exists. Or
> several other packages that I would expect to see.
>
> Some months ago I wrote a PHP script that does some simple processing on
> images. GD had the functionsI needed, so I used it. I got it working and
> used it a few times.
>
> Then I wanted to add some more functionality which was available in the
> ImageMagick package. So I rewrote it  (saving the original) using
> ImageMagick.
>
> But my PHP turned out not to support ImageMagick. So I downloaded a
> newer PHP,
> and turned on ImageMagick in the config file.
>
> But it didn't work -- my PHP didn't include ImageMagick. After a few
> frustrating
> tries to get ImageMagick working, I went back to the old version of the
> script.
>
> But now the GD version doesn't work (error messages below).
>
> I now have three different PHPs on my computer:
> * The one that was included with my Cygwin installation
> * The one that was included in my XAMPP distribution
> * One that I downloaded directly from the PHP site.
>
> I get the same errors on all 3.
>
> Okay, that's the lead-in. Here are the error messages:
>
>
> PHP Warning:  PHP Startup: Unable to load dynamic library 'bz2' (tried:
> C:\xampp\php\ext\bz2 (The specified module could not be found.),
> C:\xampp\php\ext\php_bz2.dll (The specified module could not be found.))
> in Unknown on line 0
> […]

It seems you've somehow mixed up the different PHP versions.  Make sure
that C:\xampp\php\ext\php_bz2.dll exists, and that it is the same kind
of build as your PHP (major and minor version have to match, as well as
x64/x86 and ZTS/NTS).  If in doubt, download XAMPP again, and install it
in another folder.

--
Christoph M. Becker


Thread (2 messages)

« previous php.install (#20561) next »