Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on PCRE error when compile PHP 5 in the VPS & Dedicated forum
Hi, i want to replace Apache with Litespeed webserver thus the need for recompiling PHP. When run ./configure with the old configuration from "php -i ...

  1. #1
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39

    PCRE error when compile PHP 5

    Hi, i want to replace Apache with Litespeed webserver thus the need for recompiling PHP.

    When run ./configure with the old configuration from "php -i | grep config" the following error occured:
    Code:
    configure: error: The PCRE extension requires PCRE library version >= 6.6
    Although i installed newest PCRE from source and pcretest shows the latest 7.6 i still get the error again.

    Anyone has an idea ?

    Thanks.

  2. #2
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    bump ...

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Sorry!

    You stumped the chimps...

    What are you talking about?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Hi, in short:
    When i try to compile PHP 5.2.5 with the following configuration options:
    Code:
    './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--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-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-mssql=shared' '--enable-dom=shared' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--with-readline' '--prefix=/php5' '--with-litespeed' '--with-config-file-path=../php'
    i get the following error:
    Code:
    checking for PCRE support... yes
    configure: error: The PCRE extension requires PCRE library version >= 6.6
    Although i compiled & installed latest PCRE from source ...

  5. #5
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by lamnk View Post
    Although i compiled & installed latest PCRE from source ...
    The library, not only the PHP extension?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  6. #6
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Ermm, I think so, i downloaded the tarball from pcre.org and complied it. Pcregrep shows the correct version 7.6

  7. #7
    Carpe Diem thelucky4's Avatar
    Join Date
    Jan 2008
    Posts
    89
    Not sure this will help since I've never had any issues (and you may have already tried...) --

    See Installation section of http://us2.php.net/pcre

    I noticed this was not there in your original build string:

    --with-pcre-regex=DIR
    Mike

  8. #8
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Thank you all, it was my mistake using '--with-pcre-regex=/usr'. Change that to /usr/local and voila ...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •