cannot recompile php

uvhost

Verified User
Joined
Mar 26, 2006
Messages
58
Location
UK
Hi,
I tried installing some php extension, and edited the file:

/usr/local/directadmin/custombuild/custom/litespeed/configure.php71


when i try to recompile php now, i get the following error msg.

Code:
[root@base custombuild]# /usr/local/directadmin/custombuild/build php

Found /usr/local/directadmin/custombuild/php-7.1.33.tar.gz
Extracting ...
Done.
Configuring php-7.1.33...
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config.sub   failed
/usr/local/directadmin/custombuild/custom/litespeed/configure.php71: line 39: $'\302\240': command not found
/usr/local/directadmin/custombuild/custom/litespeed/configure.php71: line 41: --enable-intl: command not found

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


configure.php71 looks like this:


Code:
#!/bin/sh
./configure \
        --prefix=/usr/local/php71 \
        --program-suffix=71 \
        --with-litespeed \
        --with-config-file-scan-dir=/usr/local/php71/lib/php.conf.d \
        --with-curl \
        --with-gd \
        --enable-gd-native-ttf \
        --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-imap=/usr/local/imap-2007f --with-imap-ssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-mysqli=mysqlnd \
        --with-pcre-regex=/usr/local \
        --with-pdo-mysql=mysqlnd \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-webp-dir=/usr/local/lib \
        --with-xsl \
        --with-zlib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-sockets \
        --enable-soap \
        --enable-mbstring \
        --enable-intl \
        --with-ldap \
        --with-ldap-sasl \     
        --enable-intl \
        --enable-bcmath \
        --with-gmp


can anybody help, please?
 
It seems you have some custom characters on line 39 :) I'd suggest removing and re-adding it then.
 
\302\240 is a non-breaking space. You might have pressed shift+enter on line 39.
 
If you just highlight the code in the post you will see it.
 
Back
Top