GD2 not showing up in phpinfo

SpeakToMeNow speaktomenow at
Tue Sep 18 20:23:07 PDT 2007

Hi this is probably pretty basic, but I've recently added a new port
for the first time since installing darwinports ages ago.

I installed mac ports , updated everything as per instructions and
then installed GD2, but it's not showing up when I load my phpinfo

'./configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man'
'--with-config-file-path=/opt/local/etc' '--enable-calendar'
'--with-iconv=/opt/local' '--enable-exif' '--enable-ftp'
'--enable-wddx' '--with-zlib=/opt/local' '--without-mysql'
'--with-gettext=/opt/local' '--with-expat-dir=/opt/local' '--with-xml'
'--with-xmlrpc' '--enable-filepro' '--enable-bcmath'
'--enable-trans-sid' '--enable-cli' '--with-pear=/opt/local/lib/php4'
'--with-openssl=/opt/local' '--enable-mbstring' '--enable-dbx'
'--enable-safe-mode' '--program-suffix=4'
'--includedir=/opt/local/include/php4' '--libdir=/opt/local/lib/php4'
'--with-ldap=/usr' '--with-kerberos=/usr' '--with-iodbc=/usr'
'--with-apxs=/usr/sbin/apxs' '--with-mysql=/opt/local' '--enable-xslt'
'--with-xslt-sablot=/opt/local' '--with-iconv-dir=/opt/local'

I tried which gd2 but it reports:
no gd2 in /bin /sbin /usr/bin /usr/sbin /opt/local/bin

but I can see all the files so if I type:
which gd2topng
it tells me

I've restarted apache 1.3 but it doesn't show up?

Is there something I need to do to get GD2 to start working and show
up in my phpinfo.php page?

I even tried to upgrade to php5 but I'm getting this error:
--->  Activating php5 5.2.4_0+darwin_8+macosx
Error: Target org.macports.activate returned: Image error:
/opt/local/etc/php.ini-dist is being used by the active php4 port.
Please deactivate this port first, or use the -f flag to force the
Error: Status 1 encountered during processing.

I don't want any of my existing services to die and I really don't
know my way around terminal too well.

Can anyone give me some advice/commands to get things up and running?


More information about the macports-users mailing list