GD - Prob installing GD with PHP

Posted on Tue Oct 10 18:01:49 2006 by pet
Prob installing GD with PHP
Hi all...
It has much time I come trying to activate the GD 2.32 in my PHP 5.1.4. My system is Linux Slackware. My
PHP and Apache are working well. I also have PERL v.5.8.4 installed and GD functions with PERL's
scripts, but not with PHP.
The make test in GD installation results:

root# make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.4 "-MExtUtils::Command::MM" "-e" "test_harness
(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Testing using png support.
t/GD..........ok
1/12 skipped: FreeType changes too frequently to be testable
t/Polyline....Subroutine scale redefined at /GD-2.32/blib/lib/GD/Polyline.pm line 52.
t/Polyline....ok
All tests successful, 1 subtest skipped.
Files=2, Tests=13, 2 wallclock secs ( 0.96 cusr + 0.09 csys = 1.05 CPU)

I tried several ways to compile PHP with GD, example:
./configure --prefix=/usr/local/php5 --enable-module=so --with-apxs --with-gd
--with-ttf --with-freetype-dir=/usr/include/freetype2/freetype/ --with-jpeg
--with-jpeg-dir=../jpeg-6b --with-png --with-png-dir=../libpng-1.2.5 --with-zlib

make

make install

After this, if I look the modules of PHP see the results:

root# php --modules
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libpng.so' in Unknown on
line 0
[PHP Modules]
calendar
ctype
date
dom
hash
iconv
libxml
pcre
PDO
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]

The GD doesn't appears. When I try to run
var_dump(gd_info());
look the result:

Fatal error: Call to undefined function gd_info() in /teste.php on line 4

Or with: phpinfo(); The GD library doen't appears

So... I need help to put the GD in my PHP installation.
Write a response