Problem installing mail/pear-Mail_Mime with php5

Matt Smith matt at
Tue Sep 28 12:34:40 PDT 2004

I have a problem with a pear extension hopefully somebody might know the
answer to. Trying to install /usr/ports/mail/pear-Mail_Mime it goes
through trying to install the dependancies and get's this far and bombs
with this:

===>  Extracting for pear-Console_Getopt-1.2
>> Checksum OK for PEAR/Console_Getopt-1.2.tgz.
===>  Patching for pear-Console_Getopt-1.2
===>  Configuring for pear-Console_Getopt-1.2
===>  Installing for pear-Console_Getopt-1.2
===>   pear-Console_Getopt-1.2 depends on executable: pear - found
===>   pear-Console_Getopt-1.2 depends on file:
/usr/local/include/php/main/php.h - found
===>   Generating packing list
===>   Generating temporary packing list
===>  Checking if devel/pear-Console_Getopt already installed

Fatal error: Call to undefined function preg_match() in
/usr/local/share/pear/bootstrap/PEAR/Frontend/CLI.php on line 54
*** Error code 255

Stop in /usr/ports/devel/pear-Console_Getopt.
*** Error code 1
Stop in /usr/ports/devel/pear-PEAR.
*** Error code 1

Stop in /usr/ports/security/pear-Auth.
*** Error code 1

Stop in /usr/ports/security/pear-Auth_SASL.
*** Error code 1

Stop in /usr/ports/net/pear-Net_SMTP.
*** Error code 1

Stop in /usr/ports/mail/pear-Mail.
*** Error code 1

Stop in /usr/ports/mail/pear-Mail_Mime.

It's complaining that preg_match is undefined. However:

root at kai[pear-Mail_Mime]# echo "<? preg_match(); ?>" | php

Warning: preg_match() expects at least 2 parameters, 0 given in
/usr/ports/mail/pear-Mail_Mime/- on line 1

So the function is definatly there. I have these php ports installed:

root at kai[pear-Mail_Mime]# pkg_info | grep php5
php5-5.0.1          PHP Scripting Language (Apache Module and CLI)
php5-gd-5.0.1       The gd shared extension for php
php5-mysql-5.0.1    The mysql shared extension for php
php5-pcre-5.0.1     The pcre shared extension for php
php5-session-5.0.1  The session shared extension for php
php5-sockets-5.0.1  The sockets shared extension for php

Any ideas????


More information about the freebsd-ports mailing list