Re: GD configuration problem
"Christoph M. Becker" <[email protected]> Tue, 22 Nov 2022 12:28:22 +0100
| Newsgroups | gmane.comp.php.install |
|---|---|
| Message-ID | <[email protected]> |
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=C2=A0 (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:=C2=A0 PHP Startup: Unable to load dynamic library 'bz2' (tr= ied: > 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 > [=E2=80=A6] 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. =2D- Christoph M. Becker