Problem with --enable-embed and freetype support
| From: | moron shi | Date: | Mon, 14 May 2007 09:17:11 +0000 |
| Subject: | Problem with --enable-embed and freetype support | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-18010@lists.php.net to get a copy of this message | ||
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, whatshould I do to refresh php module for apache?
2.If I can rebuild php without --enable-embed successfully, howcould I make freetype supported by php? I am sorry for my poor English.Thanks! Best Regards shiwen -- Shi Wen Shanghai, China