[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] php gd problem



Dear All

I'm struggling with installing php/gd on a laptop (Acer 3200) from a
Fedora Core 3 dvd which has installed without a problem on a desktop.
Everything is fine until I call imagecreatefromjpeg() which results in
Call to undefined function: imagecreatefromjpeg().

phpinfo() gives the version as 4.3.9 and the configure command as

'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--
target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--
exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--
sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--
libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--
sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--
infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-
file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-
force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-
curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-
dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm'
'--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--
with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--
with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-
xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-
regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--
enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-
track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-
pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-
kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-
pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-
ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--
enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--
enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex'
'--with-mime-magic=/usr/share/file/magic.mime' '--with-
apxs2=/usr/sbin/apxs'

The script
<?php
var_dump(gd_info());
?>

results in
Fatal error: Call to undefined function: gd_info()

rpm -qa | grep gd results in
gdbm-devel-1.8.0-24
gdk-pixbuf-gnome-0.22.0-15.0
libgda-1.0.4-3
gdbm-1.8.0-24
sysklogd-1.4.1-22
gd-2.0.28-1
gdm-2.6.0.5-6
gdb-6.1post-1.20040607.41
gdk-pixbuf-0.22.0-15.0
gd-devel-2.0.28-1

Any help very gratefully received by a struggling newbie

David Willington

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.