1

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.

1 Answer 1

1

how about

 --with-freetype --with-freetype-dir=/usr/local/lib/freetype-2.1.9/ 
2
  • where i should put this? if i write it in command line it says that the command is not found Commented Jun 1, 2011 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 Commented Jun 1, 2011 at 10:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.