Women in Technology

Hear us Roar



Article:
  PHP 4.3 and Mac OS X
Subject:   Configuring with PHP 4.3's bundled libgd
Date:   2003-01-17 02:46:25
From:   maarky
I understand that PHP 4.3 includes its own bundled libgd. It is recommended to use the bundled library. Would you configure with --enable-gd to use this bundled library since it is after all a bundle or --with-gd?


Of course I could probably get the answer using ./configure --help but I am new to compiling and would feel better getting the answer from a real live human being.

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Adam Trachtenberg photo Configuring with PHP 4.3's bundled libgd
    2003-01-17 08:24:44  Adam Trachtenberg | O'Reilly Author [View]

    From ./configure --help:


    --with-gd[=DIR] Include GD support where DIR is GD install prefix.

    If DIR is not set, the bundled GD library will be used.


    So, it's --with-gd. That said, I don't believe PHP 4.3 works correctly on MacOS X with the bundled GD lib. This change landed very late in the release process and I don't think all the MacOS-specific fixes were made.


    Try it and let me know. If it works, great! If it doesn't, don't be surprised. I'll continue to fiddle with this and let you know when I get this working.

    • Configuring with PHP 4.3's bundled libgd
      2003-01-18 04:33:45  pierre_ [View]

      Hello,

      I do not meet any problem on MacOS X. But if you got any problem to compile php with the bundled lib, feel free to post a bugreport on bugs.php.net, we will fix asap.

      hth

      pierre
      • Adam Trachtenberg photo Configuring with PHP 4.3's bundled libgd
        2003-01-20 13:33:37  Adam Trachtenberg | O'Reilly Author [View]

        You're right. I got PHP to compile with the bundled version of GD.

        In addition to --with-gd, I needed to pass --with-png-dir=/sw because my libgd.a was in /sw/lib instead of /usr/lib.

        -adam
        • Configuring with PHP 4.3's bundled libgd
          2003-02-28 18:45:24  tychay [View]

          don't you mean libpng.a? ;-)

          The issue is that gd requires either libtiff or libpng (I think) to be available somewhere in your ld library path. Since neither is included by default in the Mac OS, the ./configure will fail with a very unhelpful error.

          Take care,

          terry chay
          tychay at php dot net