|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1497 Can't get PHP 3.0.9 to include gd support!
Submitted: 1999-06-07 00:59 UTC Modified: 1999-06-12 14:22 UTC
From: lewiz at netcom dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.9 OS: FreeBSD 2.2.8-RELEASE #0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lewiz at netcom dot com
New email:
PHP Version: OS:


 [1999-06-07 00:59 UTC] lewiz at netcom dot com
./configure \
  --with-config-file-path=/usr/local/lib \
  --with-apache=/usr/local/apache \
  --with-system-regex=yes \
  --with-gd=/usr/local/lib \
  --with-mysql \
  --with-gdbm \
  --enable-debug=no \
  --enable-track-vars=yes \

dev# locate libgd
Fatal error: Call to unsupported or undefined function imagecreate()
in /usr/local/apache/htdocs/testgd.phtml on line 2

No matter what I do, even if I manually edit config.h and turn
on the HAVE_LIBGD switch, it doesn't seem to work.

The "gd" was installed from the FreeBSD ports collection, so I
do believe strongly that it is correctly installed !!

Any help.... please....


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-07 01:20 UTC] lewiz at netcom dot com
erin# pkg_info -L gd-1.3
Information for gd-1.3:


 [1999-06-10 06:56 UTC] jimjag at cvs dot php dot net
Since you're comiling PHP for use with Apache, did you rebuild Apache with the latest PHP? Did you install it? Have you restarted the server?

When you built Apache, did it complain about any unfound references or symbols?
 [1999-06-10 16:39 UTC] lewiz at netcom dot com
The answer to this problem is...  Specify a partial path for the
location of the "gd" library (libgd.a).  For example... this will
NOT work:


(assuming /usr/local/lib/libgd.a exists)

but this *will* work:


The reason for this is because the GD library also installs
some "inc" files, which it injects into the tree /usr/local/inc
of all things.  
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 27 11:03:36 2023 UTC