Php-intl is not compiled properly

wattie

Verified User
Joined
May 31, 2008
Messages
1,235
Location
Bulgaria
When compiling PHP it is not recognizing the --enable-intl option. I think it is related to patching from DA. Here is the error:

...
Found /usr/local/directadmin/custombuild/php-7.2.8.tar.gz
Extracting ...
Done.
Configuring php-7.2.8...
configure: WARNING: unrecognized options: --with-intl

followed by this one later:

configure: WARNING: unrecognized options: --with-intl
Done Configuration.
Trying to make php...

The configure file is the following:

#!/bin/sh
./configure \
--prefix=/usr/local/php72 \
--program-suffix=72 \
--enable-fpm \
--with-config-file-scan-dir=/usr/local/php72/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mhash \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--with-xmlrpc \
--enable-exif \
--enable-intl

It's almost the default one, except the mysql.sock path and "with-xmlrpc" and "enable-exif" added.

I think that DA patching is doing something to change --enable-intl to --with-intl (which was the old option from PHP5 as far as I remember).

OS: FreeBSD
 
Back
Top