Building php 5.3.10

Markoetie

Verified User
Joined
Aug 19, 2008
Messages
40
Hi,

I get this error when building php, but what is wrong here?

Thank you for using PHP.

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 9: --with-gettext: command not found

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

Code:
#!/bin/sh
./configure \
	--with-apxs2 \
	--with-curl=/usr/local/lib \
	--with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-freetype-dir=/usr/local/lib \
	--with-kerberos \
	--with-openssl \
	--with-mcrypt \
	--with-mhash \
	--with-mysql \
	--with-mysqli \
	--with-pcre-regex=/usr/local \
	--with-pdo-mysql \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-zip \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-sockets \
	--enable-mbstring
 
You've got some spaces here

Code:
        --enable-gd-native-ttf \
        --with-ttf \

, it might be them, that breaks the things, so try this:


Code:
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-mysqli \
--with-pcre-regex=/usr/local \
--with-pdo-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring

In original file there no spaces, just tabs.
 
What OS are you using?
Is gettext installed?

Regards

I'm using Debian 6 and gettext is installed


You've got some spaces here

Code:
        --enable-gd-native-ttf \
        --with-ttf \

, it might be them, that breaks the things, so try this:


Code:
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-mysqli \
--with-pcre-regex=/usr/local \
--with-pdo-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring

In original file there no spaces, just tabs.

Too bad, I still get an error

Code:
Thank you for using PHP.

Notice: Following unknown configure options were used:

--with-ttf

Check './configure --help' for available options

Done Configuration.
Trying to make php...
/bin/sh /usr/local/directadmin/custombuild/php-5.3.10/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib  -Iext/date/ -I/usr/local/directadmin/custombuild/php-5.3.10/ext/date/ -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/php-5.3.10/include -I/usr/local/directadmin/custombuild/php-5.3.10/main -I/usr/local/directadmin/custombuild/php-5.3.10 -I/usr/local/directadmin/custombuild/php-5.3.10/ext/date/lib -I/usr/local/directadmin/custombuild/php-5.3.10/ext/ereg/regex -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/directadmin/custombuild/php-5.3.10/ext/mbstring/oniguruma -I/usr/local/directadmin/custombuild/php-5.3.10/ext/mbstring/libmbfl -I/usr/local/directadmin/custombuild/php-5.3.10/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include -I/usr/local/directadmin/custombuild/php-5.3.10/ext/sqlite3/libsqlite -I/usr/local/directadmin/custombuild/php-5.3.10/TSRM -I/usr/local/directadmin/custombuild/php-5.3.10/Zend -I/usr/local/include -g -O2 -fvisibility=hidden   -c /usr/local/directadmin/custombuild/php-5.3.10/ext/date/php_date.c -o ext/date/php_date.lo
/usr/local/directadmin/custombuild/php-5.3.10/libtool: eval: line 1323: unexpected EOF while looking for matching `"'
/usr/local/directadmin/custombuild/php-5.3.10/libtool: eval: line 1324: syntax error: unexpected end of file
/usr/local/directadmin/custombuild/php-5.3.10/libtool: line 1324: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
make: *** [ext/date/php_date.lo] Error 1
 
Last edited:
Yea that resolved that. Lets see if I can find a solution for the "make: *** [ext/date/php_date.lo] Error 1" error
 
By the way, you should not modify /usr/local/directadmin/custombuild/configure/ap2/configure.php5, as with

Code:
./build update

it will be overwritten with a default one.

Copy the file to /usr/local/directadmin/custombuild/custom/ap2/configure.php5 instead.
 
ok but still i have the same. in the default config for directadmin is the value "--with-ttf \" with php 5.3.10 it cleary says
Code:
Thank you for using PHP.

Notice: Following unknown configure options were used:

--with-ttf

Check './configure --help' for available option

so in otherwords:

- is the --with-ttf depreciated? will other things not work when it cant be compiled anymore. or better why was it removed? and should the directadmin support not remove the line from the custombuild?
 
Hello,

Thanks for the report.
Since custombuild 1.1/1.2 are build for php 5.2 which still uses the with-ttl option, and the configure for 5.3 isn't "hurt" by having it (just a warning), we're going to leave it there for custombuild 1.1 and 1.2.
For custombuild 2.0, since 5.2 has been dropped, --with-ttl will not be in the php configure files, to prevent that warning.

John
 
Back
Top