老的php编译参数如下
./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
现在由于要做验证码要添加freetype支持
所以重新编译了一下
加了 --with-ttf --with-freetype-dir=/usr/local/freetype
./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
make && make install、重启apache。
然后查看phpinfo,显示的编译参数还和以前老的一样。
看/usr/local/apache/modules/libphp5.so的时间也是老的版本然后我去掉了--enable-embed,重新编译。
libphp5.so更新了,phpinfo里的编译参数一栏也是新的数据。
但是freetype还是不支持。
重启apache的时候会有个warning,之前没有
[Mon May 14 16:53:08 2007] [warn] module php5_module is already loaded, skipping
OS是Redhat AS4, Apache是httpd-2.2.3, PHP 5.2.0.
默认系统rpm装的freetype,我觉的是不是有问题就自己编译了一个在 /usr/lcoal/freetype
我觉得这里有两个问题
1: --enable-embed的作用是什么? 为什么用了这个参数新的phplib就不会被更新给apache?
2:如果解决了编译问题,那如何让php支持freetype呢?我是按php手册上作的多谢各位大侠指教
./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
现在由于要做验证码要添加freetype支持
所以重新编译了一下
加了 --with-ttf --with-freetype-dir=/usr/local/freetype
./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
make && make install、重启apache。
然后查看phpinfo,显示的编译参数还和以前老的一样。
看/usr/local/apache/modules/libphp5.so的时间也是老的版本然后我去掉了--enable-embed,重新编译。
libphp5.so更新了,phpinfo里的编译参数一栏也是新的数据。
但是freetype还是不支持。
重启apache的时候会有个warning,之前没有
[Mon May 14 16:53:08 2007] [warn] module php5_module is already loaded, skipping
OS是Redhat AS4, Apache是httpd-2.2.3, PHP 5.2.0.
默认系统rpm装的freetype,我觉的是不是有问题就自己编译了一个在 /usr/lcoal/freetype
我觉得这里有两个问题
1: --enable-embed的作用是什么? 为什么用了这个参数新的phplib就不会被更新给apache?
2:如果解决了编译问题,那如何让php支持freetype呢?我是按php手册上作的多谢各位大侠指教
解决方案 »
- 怎么让php实时读时MYSQl变动
- Message: array_push() expects parameter 1 to be array, null given
- php中读取和写入的问题
- 如何能下载一个页面的php文件
- sql优化:select * from `table1` t1 LEFT t2.id=t1.id order by t2.order 速度很慢
- 请教高手:header里面的post-check是什么意思?
- 在线等,高手多多指教!!!!
- 请问,如何实现关闭页面的同时自动删除session?
- PHP 内置的md5算法能得到具体代码吗?
- 分页显示的第二页怎么没有显示出来?
- PHP中怎样运行MySql中的存储过程
- 发送电子邮件的问题
直接编译成功...
'./configure' \
'--prefix=/usr/local/php' \
XXXXXXXXXXXXXXXXXXXXXXXXXXX
'--with-freetype-dir=/usr/local/freetype2/' \