这里是普通文章模块栏目内容页
php编译过程中的freetype支持
问:在编译php的过程中,需要加入对freetype的支持,那么到底是

  --with-freetype-dir=/usr/local

  还是

  --with-freetype-dir=/usr/

  答:这要看你的 libfreetype.so 是在 /usr/local/lib 还是 /usr/lib 中

  一般在redhat中,应该使用

  --with-freetype-dir=/usr/

  因为 libfreetype.so 是在 /usr/lib 中

  或者使用动态脚本

  --with-freetype-dir=$(locate libfreetype.so | head -n 1 | xargs dirname | xargs dirname)
栏目索引
相关内容