Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2003 22:52:31 +0200
From:      Jan Siml <jsi@jules.de>
To:        Thierry Thomas <thierry@pompo.net>
Cc:        ports@freebsd.org
Subject:   Re: Pear, PHP4 and preg_match()
Message-ID:  <5.2.1.1.2.20030720224629.00a568c0@eris.jules.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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." 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.1.1.2.20030720224629.00a568c0>