>>> Greetings, >>> I searched the users FAQ and list archive and did not find any >>> relevant responses. >>> >>> 1. Server is running Freebsd 6.0-release. >>> 2. I have apache 1.13 installed. >>> 3. I installed php4-4.0 on the machine. >>> 4. I installed squirrelmail 1.4.6 >>> >>> When I first tried to browse to http://mydomain.com/squirrelmail/ I >>> got an error "session_id()" blah blah. Googled it and found that I >>> had to recompile php with --enable-session. Did that and revisited >>> http://mydomain.com/squirrelmailand >>> got the following error: *Fatal error*: Call to undefined function: >>> preg_replace() in * >>> /usr/local/www/data-dist/squirrelmail/functions/global.php* on line >>> *85 >>> * >>> I searched for a solution and came up emtpy. Saw one reference in the >>> archives but no solution. >>> >>> Tried with Mozilla 1.5.0.1 and IE 6.0.2800.1106. >> >> >> From <http://php.net/manual/en/ref.pcre.php>: >> >> "Installation >> Beginning with PHP 4.2.0 these functions are enabled by default. You can >> disable the pcre functions with --without-pcre-regex. Use >> --with-pcre-regex=DIR to specify DIR where PCRE's include and library >> files are located, if not using bundled library. For older versions you >> have to configure and compile PHP with --with-pcre-regex[=DIR] in order >> to use these functions." >> >> Hopefully, the above does the trick. > > > well, since this is php 4.4.0 the preg_replace() function should be > enabled by default. Given this, do I need to do anything to get it working > ? Or do I have to > reconfigure/compile with --with-pcre-regex=DIR ? Also, not sure where > PCRE's include and > library files are located. How would I find them ? > > I know, these are newbie questions. My appologies.
You shouldn't need any external libraries to build the extension. I don't know where to find the libraries in FreeBSD, and I don't have time to find the answer right now. Maybe you can find something useful in the FreeBSD or PHP documentation: http://www.php.net/manual/en/install.unix.openbsd.php http://www.php.net/manual/en/install.php http://www.php.net/manual/en/faq.php Also, the output from phpinfo() should be able to tell you if you have PCRE enabled or not. (This is why keeping conversations at the list is a good idea - others might help too. Also, please don't top post at this list.) Sincerely, Fredrik. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
