Re: GD configuration problem

[email protected] ("Christoph M. Becker")
Newsgroups 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  (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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.