PDA

View Full Version : My PHP "FreeType Support" compilation doesn't work



guarriman
29th June 2006, 05:14 PM
Hi.

Using PHP 4.3.10 on FC2.

I compiled PHP by using:
--------------
'./configure' '--prefix=/usr/local/php'
'--with-apxs2=/usr/local/httpd/bin/apxs'
'--with-mysql=/usr/local/mysql'
'--with-curl=/usr/local/include/curl' '--with-gd=/usr/local/gd'
'--with-zlib-dir=/usr/local/zlib' '-with-jpeg-dir=/usr/local/jpeg-6b'
'--with-ttf=/usr/include/freetype2'
'--with-freetype-dir=/usr/include/freetype2'
make
make install
(apache reload)
---------------------

I think it's the right directory for '--with-freetype-dir', because:
[]# freetype-config --cflags
-I/usr/include/freetype2

But "FreeType Support" doesn't work (it doesn't appear on my phpinfo).

What am I doing wrong? Thank you very much.

brandor
29th June 2006, 05:41 PM
Did you install the php packages that came with FC2?

If so, it might be using those and I suppose they might not have freetype support. I'm not sure though.

guarriman
30th June 2006, 10:18 AM
Nope. I used this packages:

php-4.3.10
zlib-1.2.2
mysql-3.23.58
jpeg-6b
httpd-2.0.52
gd-2.0.33
curl-7.14.0

All of them compiled from the source files, except 'freetype-2.1.7-4',
which I installed from RPM.

Thank you very much.

Jman
1st July 2006, 03:01 AM
FYI, php in FC5 is compiled with freetype.

You probably didn't have freetype-devel package installed, so configure disabled it.