Women in Technology

Hear us Roar



Article:
  Compiling and Enabling GD in PHP 4.3
Subject:   Problems with not seeing libjpeg.a
Date:   2003-03-28 10:19:17
From:   anonymous2
Hi, first just wanted to say thanks so much for creating this article. I have been looking for something like this everywhere, and I knew O'Reilly would pull through. When trying to configure PHP with the jpeg-6b package installed, even after pointing to the right directory, PHP fails to see the libjpeg.a file in the directory. Do you have any ideas why this could be happening? Thanks again for a great article.
Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • What i do wrong?
    2007-03-29 00:04:28  luck00 [View]

    In my browser apear something like that

    Creating image... success. �PNG  ��� IHDR��,��,���C�6���PLTE��d��� ����"IDATh���1��� �Om ?������������x-���{�����IEND�B`�

    What i do wrong?
  • Problems with not seeing libjpeg.a
    2003-04-01 20:36:41  anonymous2 [View]

    I had the same problem and it turns out that you have to compile libjpeg with both static and shared libraries:

    ./configure --enable-shared --enable-static --prefix=/usr && make && make install

    and then point to --with-jpeg-dir=/usr/lib in your PHP configure.

    Hope this helps.
    • Problems with not seeing libjpeg.a
      2005-03-01 15:34:42  llbbl [View]

      I had to create the following directory manually in order for libjpeg to compile without any errors.

      mkdir /usr/man
      mkdir /usr/man/man1

      It was crapping out (uber technical term) on the following line.

      /usr/bin/install -c -m 644 ./cjpeg.1 /usr/man/man1/cjpeg.1

      Hope this helps

  • Problems with not seeing libjpeg.a
    2003-04-01 17:03:56  anonymous2 [View]

    I am also have in this same problem except with PHP 4.3.1 instead.

    I am not sure what it is. Any help would be appreciated.

    Thanks.
    • Problems with not seeing libjpeg.a
      2003-10-15 09:25:28  anonymous2 [View]

      I had the same problem. Got libjpeg tarball and installed again as described above (with shared and static) even though it was already on my system. Then got libpng-devel package and installed it because my next was very similar but regarding libpng. Bingo.