build php fails with error

RoRoo

Verified User
Joined
Dec 16, 2004
Messages
117
Hi,

I'm trying to build our second server with php 4.4.4 and GD with Freetype and TTF support. Just like our first server.

I've installed freetype 2.1.10

changed my configure.php:
Code:
./configure \
        --with-apxs \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-gd \
        --with-gd-dir=/usr/local \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-kerberos \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-zip \
        --with-openssl \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring \
        --enable-memory-limit \
        --enable-gd-native-ttf \
        --with-ttf \
      --with-freetype-dir=/usr/local/include

But this one breaks with the error that the switch --with-ttf isn't recognized

when I remove that one it breaks saying that the /usr/local/include is incorrect.

Am I seeing things? did I smoke too much pot? the config files are exactly the same. but still. it went wrong on server2 and went fine on server 2.

Any help is much appreciated.
 
Make sure your configure.php file doesn't contain any extra empty lines, is in UNIX format and has an empty line at the end.

It looks like there is a syntax error there.
 
Maybe try a ./build clean first it helped me to get mine to work.
 
chatwizrd said:
Maybe try a ./build clean first it helped me to get mine to work.

I don't think it will help here. build clean can fix linking issues, but this one looks like the error occuring during ./configure
this one breaks with the error that the switch --with-ttf isn't recognized
 
Webcart said:
Make sure your configure.php file doesn't contain any extra empty lines, is in UNIX format and has an empty line at the end.

It looks like there is a syntax error there.

I did that and everything seems to be in order..
but still the errors returns.
and the syntax is correct since it works on our other server
 
Last edited:
RoRoo said:
I did that and everything seems to be in order..
but still the errors returns.
and the syntax is correct since it works on our other server
Ok, then please provide SSH session snapshot with the following commands *:
PHP:
cd /usr/local/directadmin/customapache/
uname -a
cat configure.php
./build

This should help us figuring out the problem.

* uname will show your OS version (you can mask hostname if you want to), cat will print the content of configure.php file and the build will print out the full error message.
 
Thanks..

Here goes:

uname -a:
Code:
Linux hostname.domain.nl 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 05:28:30 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux
cat configure.php:
Code:
[root@ns5 customapache]# cat configure.php
#!/bin/sh
./configure \
        --with-apxs \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-gd \
        --with-gd-dir=/usr/local \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-kerberos \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-zip \
        --with-openssl \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring \
        --enable-memory-limit \
        --enable-gd-native-ttf \ 
        --with-freetype-dir=/usr/local/include \         
        --with-ttf
./build

Code:
Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php: line 30: --with-freetype-dir=/usr/local/include: No such file or directory [b]this flag works when I remove the --with-ttf flag[/b]
/usr/local/directadmin/customapache/configure.php: line 31: --with-ttf: command not found

*** There was an error while trying to configure php. Check the configure.php file
 
Try this one (also available as attachment):
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local \
--with-freetype \
--with-freetype-dir=/usr\
--enable-gd-native-ttf\
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
 

Attachments

  • configure.txt
    636 bytes · Views: 190
Back
Top