Monday, January 07, 2008

PHP Note To Self

Things to install for PHP, Drupal, and SugarOS to be happy:

yum install curl-devel
yum install gd-devel
yum install gd-progs

and also because I got errors that ./configure couldn't find libgd because it's not in the same place as gd.h:
ln -s gd.h /usr/lib/gd.h

and the final ./configure line:
./configure --with-mysql --with-apxs2=/usr/sbin/apxs --lib-dir=/usr/lib --with-gd=/usr/lib --with-curl=/usr/bin/curl --enable-mbstring --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-freetype-dir=/usr/lib

make
make test
make install

good to go

addendum:
to get ldap to work with SugarOS, more than likely I need to install all these, if they aren't already installed:
openldap
openldap-clients
openldap-servers (this adds the file /etc/init.d/ldap)
openldap-devel

but I haven't tried it yet, so we'll see

1 comment:

Anonymous said...

Further note to self, how to get imap compiled into php, once you get imap-2007 manually installed:

errors along the way:
a pesky error about UT8_CANONICAL

yum install libc-client-devel.i386
then:

./configure --with-mysql --with-apxs2=/usr/sbin/apxs --with-gd=/usr/lib --with-curl=/usr/bin/curl --enable-mbstring --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-freetype-dir=/usr/lib --with-imap --with-kerberos --with-imap-ssl

service httpd restart
http://server/phpinfo.php shows imap compiled into php.