php5 & pear & pecl (Fatal error: Call to undefined function
preg_match())
Olivier Mueller
om-lists-bsd at omx.ch
Tue Mar 7 15:43:25 UTC 2006
Hello,
I would like to install the pop3 pecl extension
(http://pecl.php.net/package/POP3) but I still can't get it :/
Problem: it seems that pecl is broken since last portupgrade which
upgraded php 5.0.x to php 5.1.x. I managed to get pear back to work:
$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
PEAR 1.4.8 stable
XML_RPC 1.4.5 stable
But when I try to start pecl: (to do a "pecl install pop3")
$ pecl
Fatal error: Call to undefined function preg_match()
in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 70
But the preg functions are installed and active. (pcre.so & co.)
Last thing I tried: installation by hand, but this breaks too at:
[/usr/local/src/pop3-1.0.2]$ make
/usr/local/bin/bash /usr/local/src/pop3-1.0.2/libtool --mode=compile gcc
-I. -I/usr/local/src/pop3-1.0.2 -DPHP_ATOM_INC
-I/usr/local/src/pop3-1.0.2/include -I/usr/local/src/pop3-1.0.2/main
-I/usr/local/src/pop3-1.0.2 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/include
-DHAVE_CONFIG_H -g -O2 -c /usr/local/src/pop3-1.0.2/pop3.c -o pop3.lo
libtool: compile: cannot determine name of library object from `'
*** Error code 1
System is a 5.4-RELEASE-p12 with latest ports.
$ pkg_info|grep php
php5-5.1.2_1 PHP Scripting Language (Apache Module and CLI)
php5-bz2-5.1.2_1 The bz2 shared extension for php
php5-curl-5.1.2_1 The curl shared extension for php
php5-ftp-5.1.2_1 The ftp shared extension for php
php5-gd-5.1.2_1 The gd shared extension for php
php5-gettext-5.1.2_1 The gettext shared extension for php
php5-iconv-5.1.2_1 The iconv shared extension for php
php5-mbstring-5.1.2_1 The mbstring shared extension for php
php5-mcrypt-5.1.2_1 The mcrypt shared extension for php
php5-mysql-5.1.2_1 The mysql shared extension for php
php5-mysqli-5.1.2_1 The mysqli shared extension for php
php5-openssl-5.1.2_1 The openssl shared extension for php
php5-pcre-5.1.2_1 The pcre shared extension for php
php5-session-5.1.2_1 The session shared extension for php
php5-simplexml-5.1.2_1 The simplexml shared extension for php
php5-wddx-5.1.2_1 The wddx shared extension for php
php5-xml-5.1.2_1 The xml shared extension for php
php5-zlib-5.1.2_1 The zlib shared extension for php
$
$
$ pkg_info|grep pear
pear-1.4.6 PEAR framework for PHP
The dependencies of the pear package looks strange to me:
http://www.freebsd.org/cgi/ports.cgi?query=pear-1.4.6 : php4-4.4.2_1,
php4-pcre-4.4.2_1, php4-xml-4.4.2_1, while it's a php5-system. Maybe
it's why I have problems?
Browsing in the mailing list archive brings informations about a
"php5-pear" which doesn't seem to exist anymore...
(confirmed by:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/php5-pear/ )
Well, I'd still like to get my pecl pop3 running... An idea?
Under linux (with an php5 installation "by hand") everything
works directely, both "pecl install pop3" and from source.
Thanks & regards,
Olivier
More information about the freebsd-ports
mailing list