Hello everyone:

   The old php configration is

./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache2/bin/apxs --enable-embed --enable-fd-setsize
--with-openssl=/usr/local --with-zlib=/usr/local/zlib
--with-zlib-dir=/usr/local/zlib --enable-calendar --enable-dba --enable-ftp
--with-gd --with-jpeg-dir=/usr/local/jpeg-6b
--with-png-dir=/usr/local/libpng --enable-gd-native-ttf --enable-gd-jis-conv
--enable-mbstring --with-mysql=/usr/local/mysql --enable-embedded-mysqli
--with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sqlite-utf8
--enable-zip

   And now I have to add *freetype* support for php.
   So I rebuilded php like this,

./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache2/bin/apxs --enable-embed --enable-fd-setsize
--with-openssl=/usr/local --with-zlib=/usr/local/zlib
--with-zlib-dir=/usr/local/zlib --enable-calendar --enable-dba --enable-ftp
--with-gd --with-jpeg-dir=/usr/local/jpeg-6b
--with-png-dir=/usr/local/libpng --enable-gd-native-ttf --enable-gd-jis-conv
--enable-mbstring --with-mysql=/usr/local/mysql --enable-embedded-mysqli
--with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sqlite-utf8
--enable-zip *--with-ttf --with-freetype-dir=/usr/local/freetype*
**
   But when I finished make && make install and restarted apache server,
the freetype support was also disabled. The GD part in phpinfo() didn't show
freetype support.  And /usr/local/apache/modules/libphp5.so was a old
version.
   Then I rebuilded php again without *--enable-embed*. The libphp5.so was
updated, but freetype was not enabled. And when I restart apache, I will get
a warning now.

[Mon May 14 16:53:08 2007] [warn] module php5_module is already loaded,
skipping


   My OS is Redhat AS4. Apache version is httpd-2.2.3. PHP is 5.2.0.
   Freetype was installed with RPM. And I also installed another one at
/usr/lcoal/freetype with source code.

   So I think there are two problems:
     1.What is the function of --enable-embed? If I use this option, what
should I do to refresh php module for apache?
     2.If I can rebuild php without --enable-embed successfully, how
could I make freetype supported by php?

   I am sorry for my poor English.Thanks!

Best Regards

shiwen

--
Shi Wen
Shanghai, China

Reply via email to