| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2003-01-21 12:45 UTC] gmourani at openna dot com
 Compiling PHP 4.3.0 with Pear support fail to install and return the following message:
Parse error: syntax error, unexpected T_WHITESPACE in /usr/src/openna/BUILD/php-4.3.0/pear/install-pear.php on line 3
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.19931 (%install)
Configure line is as follow:
%configure \
        --prefix=%{_prefix} \
        --with-layout=GNU \
        --with-config-file-path=%{_sysconfdir}/httpd \
        --enable-force-cgi-redirect \
        --with-apxs2=%{_sbindir}/apxs \
        --with-exec-dir=%{_bindir} \
        --with-openssl \
        --with-zlib \
        --with-bz2 \
        --with-gd \
        --with-ttf \
        --with-png \
        --with-jpeg-dir=%{_prefix} \
        --with-png-dir=%{_prefix} \
        --with-freetype-dir=%{_prefix} \
        --with-expat-dir=%{_prefix} \
        --with-gmp \
        --with-xml \
        --with-curl \
        --with-mm \
        --with-pear=%{_datadir}/pear \
        --with-imap=shared \
        --with-imap-ssl \
        --with-mysql=shared,%{_prefix} \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-pgsql=shared \
        --with-ldap=shared \
        --disable-static \
        --disable-debug \
        --disable-rpath \
        --disable-posix \
        --disable-tokenizer \
        --enable-discard-path \
        --enable-safe-mode \
        --enable-magic-quotes \
        --enable-bcmath \
        --enable-dio \
        --enable-gd-native-ttf \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-track-vars \
        --enable-wddx \
        --enable-inline-optimization \
        --enable-memory-limit
G
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
Same problem here, with debian/sarge and php-4.3.1. I really don't have a clue, but suspect sablotron or expat to cause this. I use ablotron (0.9.7) and expat (1.95.6), and the debian-scripts from the deb package maintainer. configure: --enable-memory-limit \ --enable-calendar \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --enable-trans-sid \ --enable-bcmath \ --with-bz2 \ --enable-ctype \ --with-db2 \ --with-iconv \ --with-gdbm \ --enable-exif \ --enable-filepro \ --enable-ftp \ --with-gettext \ --enable-mbstring \ --with-pcre-regex=/usr \ --enable-shmop \ --enable-sockets \ --enable-wddx \ --with-xml=/usr --with-expat-dir=/usr \ --enable-yp \ --with-zlib \ --without-pgsqlFedora SRPM has this: # bison-1.875-2 seems to produce a broken parser; workaround. mkdir Zend && cp ../Zend/zend_{language,ini}_parser.[ch] Zend