Re: Compiling PHP with GD and JPEG support
[email protected] (David Parker) Fri, 3 Jan 2014 16:38:12 -0500
| Newsgroups | php.install |
|---|---|
| Message-ID | <CAHoJ95UV8qXc-EY5n9FwhxPDkBg-AA-MdtTPfN=eey5L2S4PEQ@mail.gmail.com> |
Hello again,
I finally got this to work, thanks mostly to the information I found here:
http://stackoverflow.com/questions/7167860/compiling-php-with-gd-and-libjpeg-support
I created symlinks for the libjpeg files under /usr/lib and also ran 'make
clean' prior to 'make'. I'm not exactly sure which one was the missing
trick, but I then compiled PHP again with '--with-jpeg-dir=/usr' and now
JPEG support works.
- Dave
On Fri, Jan 3, 2014 at 2:35 PM, David Parker <[email protected]> wrote:
> Hello,
>
> I am attempting to compile PHP 5.5.4 with GD (bundled) and JPEG support,
> but so far I have not had any luck getting JPEG support to work. This is
> on Debian 7.2 (Wheezy) with libjpeg8 and libjpeg8-dev already installed via
> apt-get, and the libjpeg libraries are under /usr/lib/x86_64-linux-gnu.
>
> I've tried the following options:
>
> --with-gd --with-jpeg-dir=/usr/lib/x86_64-linux-gnu
> --with-gd --with-jpeg-dir=/usr/lib
> --with-gd --with-jpeg-dir=/usr
>
> But no matter what I do, JPEG support does not work, and phpinfo shows the
> following for GD:
>
> GD Support enabled
> GD Version bundled (2.1.0 compatible)
> GIF Read Support enabled
> GIF Create Support enabled
> PNG Support enabled
> libPNG Version 1.2.49
> WBMP Support enabled
> XBM Support enabled
>
> I should note that 'configure' reports no errors regarding GD or libjpeg,
> and the configuration and compile process goes smoothly. Also, PNG support
> works perfectly every time, without specifying anything for it at compile
> time, and libpng is installed from native packages same as libjpeg.
>
> I'm starting to suspect that I've missed something simple and obvious, but
> I really can't figure this out. Can anyone shed some light on what I might
> be doing wrong?
>
> Thanks!
> Dave
>
> --
> Dave Parker
> Systems Administrator
> Utica College
> Integrated Information Technology Services
> (315) 792-3229
> Registered Linux User #408177
>
--
Dave Parker
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177