linux下编译php支持jpeg的备忘

有一朋友liunx主机配置php的gd库未支持jpeg,需要重新编译支持jpeg,
凭经验用

./configure –with-gd –with-jpeg-dir=/usr/lib
这个居然不起作用

改变顺序如下生效
./configure –with-jpeg-dir=/usr/lib –with-gd

在此谨记!

One thought on “linux下编译php支持jpeg的备忘

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>