I am having a bear of a time getting FreeType compiled into PHP.

I have successfully installed the RPM:

 [EMAIL PROTECTED] rpms]# rpm -U
freetype-2.1.3-6.i386.rpm
 [EMAIL PROTECTED] php-4.3.1]# rpm -q freetype-2.1.3-6
 freetype-2.1.3-6

I know I need the "--with-freetype-dir=<DIR>" argument in configure, and
have tried:

 --with-freetype-dir
 --with-freetype-dir=/usr/lib/
 --with-freetype-dir=/usr/lib

running configure always results in an error -- messages ending in:

 checking for GD support... yes
 checking for the location of libjpeg... yes
 checking for the location of libpng... yes
 checking for the location of libXpm... yes
 checking for FreeType 1.x support... yes
 checking for FreeType 2... yes
 checking for T1lib support... yes
 checking whether to enable truetype string function in GD... yes
 checking for fabsf... (cached) yes
 checking for floorf... (cached) yes
 checking for jpeg_read_header in -ljpeg... (cached) yes
 checking for png_write_image in -lpng... (cached) yes
 checking for XpmFreeXpmImage in -lXpm... (cached) yes
 configure: error: freetype2 not found! <<**************

my full command line is:

 ./configure --with-mysql --with-apxs2 --with-xpm-dir --with-png
--with-png-dir
   --with-jpeg-dir  --enable-exif --with-zlib-dir --with-gd  --with-ttf
--with-freetype
   --with-freetype-dir=/usr/lib

Where am I going astray?

(phpinfo follows)

Dan Hansen

====================================================================
PHP Version 4.3.1

System  Linux nikto 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586
Build Date  Nov 25 2003 02:00:36
Configure Command  './configure' '--with-mysql' '--with-apxs2'
'--with-xpm-dir' '--with-png' '--with-png-dir' '--with-jpeg-dir'
'--enable-exif' '--with-zlib-dir' '--with-gd' '--with-ttf'
'--with-freetype'
Server API  Apache 2.0 Filter
Virtual Directory Support  disabled
Configuration File (php.ini) Path  /usr/local/lib/php.ini
PHP API  20020918
PHP Extension  20020429
Zend Extension  20021010
Debug Build  no
Thread Safety  disabled
Registered PHP Streams  php, http, ftp, compress.zlib

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies


--------------------------------------------------------------------------------


PHP Credits

--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root http://www.php.net/ http://www.php.net/
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF9900 #FF9900
highlight.default #0000CC #0000CC
highlight.html #000000 #000000
highlight.keyword #006600 #006600
highlight.string #CC0000 #CC0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/php/includes:/usr/share/php .:/php/includes:/usr/share/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 300 300
max_input_time -1 -1
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from [EMAIL PROTECTED] [EMAIL PROTECTED]
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir /var/www/temp/upload /var/www/temp/upload
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off


Apache 2.0 ctype ctype functions enabled


exif EXIF Support enabled EXIF Version 1.4 $Id: exif.c,v 1.118.2.12 2002/12/23 08:43:13 sesser Exp $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF


gd GD Support enabled GD Version bundled (2.0 compatible) GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled


imap IMAP Support enabled IMAP c-Client Version 2001 SSL Support enabled Kerberos Support enabled


ldap LDAP Support enabled RCS Version $Id: ldap.c,v 1.116.2.1 2002/04/23 18:59:57 derick Exp $ Total Links 0/unlimited API Version 2004 Vendor Name OpenLDAP Vendor Version 20025


mysql MySQL Support enabled Active Persistent Links 1 Active Links 1 Client API version 3.23.49 MYSQL_MODULE_TYPE builtin MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE no value MYSQL_LIBS no value

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout -1 -1
mysql.default_host 192.168.1.1 192.168.1.1
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


overload User-Space Object Overloading Support enabled


pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 3.92 11-Sep-2002


posix Revision $Revision: 1.51 $


session Session Support enabled Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_dividend 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On


standard Regex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value


tokenizer Tokenizer Support enabled


xml XML Support active XML Namespace Support active EXPAT Version 1.95.2


zlib ZLib Support enabled Compiled Version 1.1.4 Linked Version 1.1.4

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules Module Name


Environment
Variable Value
HOSTNAME nikto
SHELL /bin/bash
TERM xterm
HISTSIZE 1000
SSH_CLIENT 192.168.1.2 2830 22
SSH_TTY /dev/pts/0
USER root
LS_COLORS
no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:



USERNAME root
PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin



MAIL /var/spool/mail/root PWD /etc/rpms/php-4.3.1 INPUTRC /etc/inputrc LANG en_US SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass HOME /root SHLVL 2 BASH_ENV /root/.bashrc LOGNAME root LESSOPEN |/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES 1 _ /usr/sbin/httpd


PHP Variables
Variable Value
PHP_SELF /wildwis/core/phpscratch/phpinfo.php3
_COOKIE["be_typo_user"] d56c88d820fb04a0312004ec462d1ca1
_SERVER["UNIQUE_ID"] EYO8fsCoAQEAAFxcOY8AAAAC
_SERVER["HTTP_ACCEPT"] application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/x-shockwave-flash, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
_SERVER["HTTP_HOST"] 192.168.1.1
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] be_typo_user=d56c88d820fb04a0312004ec462d1ca1
_SERVER["PATH"]
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin



_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.40 Server at 192.168.1.1 Port 80</address> _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) _SERVER["SERVER_NAME"] 192.168.1.1 _SERVER["SERVER_ADDR"] 192.168.1.1 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 192.168.1.2 _SERVER["DOCUMENT_ROOT"] /var/www/html _SERVER["SERVER_ADMIN"] [EMAIL PROTECTED] _SERVER["SCRIPT_FILENAME"] /var/www/html/wildwis/core/phpscratch/phpinfo.php3 _SERVER["REMOTE_PORT"] 2510 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["SCRIPT_NAME"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["PHP_SELF"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["argv"] Array ( )


_SERVER["argc"] 0
_ENV["HOSTNAME"] nikto
_ENV["SHELL"] /bin/bash
_ENV["TERM"] xterm
_ENV["HISTSIZE"] 1000
_ENV["SSH_CLIENT"] 192.168.1.2 2830 22
_ENV["SSH_TTY"] /dev/pts/0
_ENV["USER"] root
_ENV["LS_COLORS"]
no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:



_ENV["USERNAME"] root
_ENV["PATH"]
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin



_ENV["MAIL"] /var/spool/mail/root _ENV["PWD"] /etc/rpms/php-4.3.1 _ENV["INPUTRC"] /etc/inputrc _ENV["LANG"] en_US _ENV["SSH_ASKPASS"] /usr/libexec/openssh/gnome-ssh-askpass _ENV["HOME"] /root _ENV["SHLVL"] 2 _ENV["BASH_ENV"] /root/.bashrc _ENV["LOGNAME"] root _ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s _ENV["G_BROKEN_FILENAMES"] 1 _ENV["_"] /usr/sbin/httpd

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to