4.0.19 + PHP 5.3.5 mail header patch error ?

Discussion in 'PHP' started by eva2000, Jan 21, 2011.

  1. eva2000

    eva2000 Member

    Just updated to litespeed 4.0.19 and rebuilding PHP 5.3.5 get's mail header patch error ?

    Code:
    **MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1295639433.4.progress
    Preparing all source code for building PHP 5.3.5 with LSAPI
    Retrieving PHP source archive from http://us.php.net/get/php-5.3.5.tar.gz/from/us.php.net/mirror
    Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
    Retrieving mail header patch from http://choon.net/opensource/php/php-5.3.5-mail-header.patch
    Patching source with mail header patch
    **ERROR** Could not patch source with mail header patch
    
    DETAILED LOG

    Code:
    Retrieving mail header patch from http://choon.net/opensource/php/php-5.3.5-mail-header.patch
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
    100   162  100   162    0     0    191      0 --:--:-- --:--:-- --:--:--   191
    100   162  100   162    0     0    191      0 --:--:-- --:--:-- --:--:--     0
    
    Patching source with mail header patch
    patch: **** Only garbage was found in the patch input.
    **ERROR** Could not patch source with mail header patch
    
    
    is the mail header patch needed ?
  2. eva2000

    eva2000 Member

    Tried building PHP 5.3.5 without mail header patch and only memcached and get another error

    Code:
    **MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1295639983.1.progress
    Start building PHP 5.3.5 with LSAPI
    Configuring PHP build (2-3 minutes)
    Compiling PHP (5-10 minutes)
    Installing PHP
    copy compiled php binary to litespeed directory
    Start building MemCache Extension
    Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6
    Running PHPize for MemCache extension
    **ERROR** Could not run PHPize for MemCache
    
    Code:
    Build complete.
    Don't forget to run 'make test'.
    
    Installing PHP
    Installing PHP SAPI module:       litespeed
    Installing PHP LiteSpeed into: /usr/bin/
    Installing PHP CLI binary:        /usr/bin/
    Installing PHP CLI man page:      /usr/share/man/man1/
    Installing shared extensions:     /usr/lib64/20090626/
    Installing build environment:     /usr/lib64/build/
    Installing header files:          /usr/include/php/
    Installing helper programs:       /usr/bin/
      program: phpize
      program: php-config
    Installing man pages:             /usr/share/man/man1/
      page: phpize.1
      page: php-config.1
    Installing PDO headers:          /usr/include/php/ext/pdo/
    copy compiled php binary to litespeed directory
    cd /usr/local/lsws//fcgi-bin
    ln -sf lsphp-5.3.5 lsphp5
    
    ==============================================
    Finished building PHP 5.3.5 with LSAPI
    ==============================================
    Sat Jan 22 06:04:12 EST 2011
    
    
    ==============================================
    Start building MemCache Extension
    ==============================================
    Sat Jan 22 06:04:12 EST 2011
    
    Changing to build directory /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6
    Running PHPize for MemCache extension
    /usr/local/lsws/phpbuild/buildphp_1295639983.1.install.sh: line 134: /usr/local/lsws/lsphp5/bin/phpize: No such file or directory
    **ERROR** Could not run PHPize for MemCache
    
    phpize locations

    Code:
    locate phpize
    /usr/bin/phpize
    /usr/lib64/build/phpize.m4
    /usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize
    /usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize.in
    /usr/local/lsws/phpbuild/php-5.3.4/scripts/phpize.m4
    /usr/local/lsws/phpbuild/php-5.3.4/scripts/man1/phpize.1
    /usr/local/lsws/phpbuild/php-5.3.4/scripts/man1/phpize.1.in
    /usr/local/src/php535/php-5.3.5/scripts/phpize
    /usr/local/src/php535/php-5.3.5/scripts/phpize.in
    /usr/local/src/php535/php-5.3.5/scripts/phpize.m4
    /usr/local/src/php535/php-5.3.5/scripts/man1/phpize.1
    /usr/local/src/php535/php-5.3.5/scripts/man1/phpize.1.in
    /usr/share/man/man1/phpize.1
    /usr/share/man/man1/phpize.1.gz
    Last edited: Jan 21, 2011
  3. eva2000

    eva2000 Member

    seems PHP 5.3.4 has same error but let me go through to end ?

    Code:
    Build complete.
    Don't forget to run 'make test'.
    
    Installing PHP
    Installing PHP SAPI module:       litespeed
    Installing PHP LiteSpeed into: /usr/bin/
    Installing PHP CLI binary:        /usr/bin/
    Installing PHP CLI man page:      /usr/share/man/man1/
    Installing shared extensions:     /usr/lib64/20090626/
    Installing build environment:     /usr/lib64/build/
    Installing header files:          /usr/include/php/
    Installing helper programs:       /usr/bin/
      program: phpize
      program: php-config
    Installing man pages:             /usr/share/man/man1/
      page: phpize.1
      page: php-config.1
    Installing PDO headers:          /usr/include/php/ext/pdo/
    copy compiled php binary to litespeed directory
    cd /usr/local/lsws//fcgi-bin
    ln -sf lsphp-5.3.4 lsphp5
    
    ==============================================
    Finished building PHP 5.3.4 with LSAPI
    ==============================================
    Wed Jan 19 22:29:09 EST 2011
    
    
    ==============================================
    Start building MemCache Extension
    ==============================================
    Wed Jan 19 22:29:09 EST 2011
    
    Changing to build directory /usr/local/lsws/phpbuild/php-5.3.4/memcache-2.2.6
    Running PHPize for MemCache extension
    /usr/local/lsws/phpbuild/buildphp_1295439762.1.install.sh: line 134: /usr/local/lsws/lsphp5/bin/phpize: No such file or directory
    **ERROR** Could not run PHPize for MemCache
    
    Looks like phpize isn't where litespeed thinks it is
    Last edited: Jan 21, 2011
  4. mistwang

    mistwang LiteSpeed Staff

    litespeed PHP was installed to /usr/bin, should be installed to /usr/local/lsws/lsphp5/bin,
    Need to remove "--prefix=/usr" from the configuration option.
  5. eva2000

    eva2000 Member

    Yup that was it

    Code:
    Libraries have been installed in:
       /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6/modules
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    
    Build complete.
    Don't forget to run 'make test'.
    
    Installing MemCache extension
    Installing shared extensions:     /usr/local/lsws/lsphp5/lib/php/20090626/
    chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-5.3.5/memcache-2.2.6 
    
    ==============================================
    MemCache extension build complete
    ==============================================
    Sat Jan 22 06:25:28 EST 2011
    
    **COMPLETE**
  6. fastproxy

    fastproxy New Member

    i have similar problem, i dont have "--prefix=/usr" in the configuration option.

    My configuration options:
    Code:
    '--with-litespeed' '--with-mysql' '--with-mysqli' '--with-libdir=lib64' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos'
    Error:
    Code:
    **MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1296856348.4.progress
    Preparing all source code for building PHP 5.3.5 with LSAPI
    php-5.3.5.tar.gz already downloaded, use the saved copy.
    Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
    Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.5-0.9.10.patch.gz
    **ERROR** Could not extract Suhosin patch
    
    Code:
    **LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1296856348.4.log
    =============================================================
    Preparing all source code for building PHP 5.3.5 with LSAPI
    =============================================================
    Fri Feb 4 16:52:28 EST 2011
    
    Changing to build directory /usr/local/lsws/phpbuild
    php-5.3.5.tar.gz already downloaded, use the saved copy.
    Extracting PHP source archive: tar -zxf php-5.3.5.tar.gz
    
    Suhosin is enabled
    Retrieving Suhosin patch from http://download.suhosin.org/suhosin-patch-5.3.5-0.9.10.patch.gz
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
    100   345  100   345    0     0   1040      0 --:--:-- --:--:-- --:--:--  1040
    100   345  100   345    0     0   1040      0 --:--:-- --:--:-- --:--:--     0
    
    Extracting Suhosin patch: gunzip -f suhosin-patch-5.3.5.patch.gz
    
    gunzip: suhosin-patch-5.3.5.patch.gz: not in gzip format
    **ERROR** Could not extract Suhosin patch
    
  7. webizen

    webizen New Member

Share This Page