From owner-freebsd-ports@FreeBSD.ORG Sun Jul 20 13:53:01 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32DC737B401 for ; Sun, 20 Jul 2003 13:53:01 -0700 (PDT) Received: from eris.jules.de (eris.jules.de [80.190.100.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4432243FA3 for ; Sun, 20 Jul 2003 13:53:00 -0700 (PDT) (envelope-from jsi@jules.de) Received: from localhost (localhost.jules.de [127.0.0.1]) by eris.jules.de (Postfix) with ESMTP id CEF6777A3C; Sun, 20 Jul 2003 22:52:57 +0200 (CEST) Received: from eris.jules.de ([127.0.0.1]) by localhost (eris.jules.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22962-05; Sun, 20 Jul 2003 22:52:52 +0200 (CEST) Received: from ALANIS.jules.de (De872.pppool.de [80.184.232.114]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by eris.jules.de (Postfix) with ESMTP id 6748277A38; Sun, 20 Jul 2003 22:52:51 +0200 (CEST) Message-Id: <5.2.1.1.2.20030720224629.00a568c0@eris.jules.de> X-Sender: jan@eris.jules.de X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Sun, 20 Jul 2003 22:52:31 +0200 To: Thierry Thomas From: Jan Siml In-Reply-To: <20030720153736.GB29003@graf.pompo.net> References: <1400.80.184.97.114.1057863996.squirrel@mail.jules.de> <1400.80.184.97.114.1057863996.squirrel@mail.jules.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: ports@freebsd.org Subject: Re: Pear, PHP4 and preg_match() X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 20:53:01 -0000 Dear Thierry, > > I'm using PHP 4.3.3 and the Pear framework from the ports. When trying to > > install or upgrade an existing version of the pear framework or even > > modules I got the following error: > > > > jan@alanis:/usr/ports/devel/pear-PEAR# make reinstall clean > > ===> Extracting for pear-PEAR-1.2.b2 > > >> Checksum OK for PEAR/PEAR-1.2b2.tgz. > > ===> Patching for pear-PEAR-1.2.b2 > > ===> pear-PEAR-1.2.b2 depends on file: > > /usr/local/share/pear/Archive/Tar.php - found > > ===> pear-PEAR-1.2.b2 depends on file: > > /usr/local/share/pear/Console/Getopt.php - found > > ===> Configuring for pear-PEAR-1.2.b2 > > ===> Installing for pear-PEAR-1.2.b2 > > ===> pear-PEAR-1.2.b2 depends on file: > > /usr/local/share/pear/Archive/Tar.php - found > > ===> pear-PEAR-1.2.b2 depends on file: > > /usr/local/share/pear/Console/Getopt.php - found > > ===> Generating temporary packing list > > ===> Checking if devel/pear-PEAR already installed > > > > Fatal error: Call to undefined function: preg_match() in > > /usr/local/share/pear/PEAR/Frontend/CLI.php on line 53 > > *** Error code 255 > >preg_match() is part of PCRE (Perl Compatible Regular Expressions). When >you install PHP by the FreeBSD port / package, PCRE is selected by >default, and that should work. Perhaps have you de-selected it? You can >check phpinfo (or just `php -i'). I de- and reinstalled the php4-port several times. I've checked always the default selections and removed every php4 related option from pkgtools.conf and make.conf. It didn't worked. I now deinstalled all pear-ports, removed the directory /usr/local/share/pear and php4. After reinstalling everything it works. I installed pear before pear-PEAR now. Maybe this was the problem? Don't know. But I'm happy to see it working now. Thanks and regards Jan -- "For their next act, they'll no doubt be buying a firewall running under NT, which makes about as much sense as building a prison out of meringue."