Jump to content
Sign in to follow this  

Compilare Php Cu Gd Cu Suport Freetype

Recommended Posts


Am nevoie de PHP cu GD cu suport Freetype, pentru un site care genereaza grafice in timp real. Cel putin asta CRED ca e problema. In logul de erori al Apache primesc:

PHP Fatal error:  Call to undefined function imageftbbox() in <fisier>

Webserverul este in totalitate al meu (adica nu pe host) si este tinut pe un sistem cu CentOS 5.5. Apache, MySQL si PHP sunt toate configurate si compilate de mine, nu sunt versiunile luate cu Yum.

Acuma, care e problema: phpinfo() zice ca am GD instalat, zice ca are suport Freetype, dar daca fac var_dump(gd_info()); intr-un PHP de info, vad asa: array(11) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(false) etc.etc.

Am reusit cu succes sa descarc si sa instalez atat GD-ul, cat si freetype, si sa compilez GD-ul cu suport Freetype, insa nu prea ma descurc sa il bag in PHP. In momentul in care configurez PHP-ul si dau calea catre GD acolo unde l-am instalat eu, imi zice ca nu gaseste niste fisiere. Comanda de configure este:

./configure --with-apxs2=/SERVER/Apache/bin/apxs --with-mysql --prefix=/SERVER/PHP --exec-prefix=/SERVER/PHP --with-gd=/usr/local/bin --with-freetype-dir=/usr/include/freetype2

Am cautat pe net de am obosit, si nu gasesc nimic. Are cineva idee cum includ GD cu suport Freetype in PHP?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...