Configure php 5.3 fail with error : freetype.h not found (but libfreetype6-dev is installed)

前端 未结 1 1132
借酒劲吻你
借酒劲吻你 2021-02-19 13:30

I have configured php with the following command:

./configure \\
--prefix=/opt/phpfcgi-5.3.28 \\
--with-pdo-pgsql \\
--with-zlib-dir \\
--with-freetype-dir=/usr/         


        
相关标签:
1条回答
  • 2021-02-19 14:26

    If you got that message, even if you installed libfreetype6-dev, then try this:

    mkdir /usr/include/freetype2/freetype
    ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
    

    After this, do .configure again.

    Additional hint: For some Systems you have to use /usr/local/include....

    0 讨论(0)
提交回复
热议问题