Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have both GD and Freetype installed but I can't make it work. The server run CentOS 5 with cpanel.

I read on php.net that I need to compile PHP with more options with

--with-gd
--enable-gd-native-ttf
--with-png
--with-zlib-dir=/usr/local/lib/zlib-1.2.1
--with-ttf
--with-jpeg-dir=/usr/local/lib/jpeg-6b/
--with-freetype-dir=/usr/local/lib/freetype-2.1.9/
--with-xpm-dir=/usr/X11R6/

However, I can't figure out where I should type this.

share|improve this question

how about

    --with-freetype
    --with-freetype-dir=/usr/local/lib/freetype-2.1.9/
share|improve this answer
    
where i should put this? if i write it in command line it says that the command is not found – GabrielCol Jun 1 '11 at 9:10
    
please check if php-gd installed or not: rpm -qa|grep php, if not try install using yum php-gd. if you cannot install using yum you need to download the php source code and compile it using ./configure --with-freetype --with-freetype-dir=/usr/local/lib/freetype-2.1.9/ foo – chocripple Jun 1 '11 at 10:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.