LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Call to undefined function: imagettftext() (https://www.linuxquestions.org/questions/linux-software-2/call-to-undefined-function-imagettftext-671573/)

magnar 09-22-2008 09:27 AM

Call to undefined function: imagettftext()
 
Hi,

I'm getting: Call to undefined function: imagettftext() when trying to open a CAPTCHA-image here.

Can anyone please guide me step-by-step making this work ? Installing GD with TrueType-fonts and any other package that this function needs...?

Using CentOS and RedHat.

TB0ne 09-22-2008 09:33 AM

Quote:

Originally Posted by magnar (Post 3288217)
Hi,

I'm getting: Call to undefined function: imagettftext() when trying to open a CAPTCHA-image here.

Can anyone please guide me step-by-step making this work ? Installing GD with TrueType-fonts and any other package that this function needs...?

Using CentOS and RedHat.

You don't say what program you're using that's generating the error, so it's hard to "guide you step by step". Chances are you need to install a missing module, probably something that provides imagettftext.

magnar 09-22-2008 10:09 AM

CAPTCHA for PHPBB
 
It's for the CAPTCHA for PHPBB, www.phpbb.com

All fresh RedHat-server. I just installed the package from: http://www.libgd.org/Downloads

With the summary:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes


The question of the DAY is now is to install these two first packages (H)

TB0ne 09-22-2008 10:31 AM

Quote:

Originally Posted by magnar (Post 3288261)
It's for the CAPTCHA for PHPBB, www.phpbb.com

All fresh RedHat-server. I just installed the package from: http://www.libgd.org/Downloads

With the summary:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes


The question of the DAY is now is to install these two first packages (H)

The libgd provides graphic support for PNG/JPG/etc. It seems like you need to install libfreetype, which will satisfy the freetype and fontconfig requirements. The documentation on phpbb references Freetype.

magnar 09-22-2008 10:38 AM

Ok, excellent.

You have quick tips the command to install this lib?


All times are GMT -5. The time now is 10:27 PM.