Date: Sun, 01 Jun 2008 10:10:04 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Vince Hoffman <jhary@unsane.co.uk> Cc: freebsd-questions@freebsd.org, kevin kempter <kevin@kevinkempterllc.com> Subject: Re: freeBSD PHP issues Message-ID: <4842676C.70401@infracaninophile.co.uk> In-Reply-To: <4841CC69.5000404@unsane.co.uk> References: <7B9E3A32-180C-4D24-991A-4EF1950D50E2@kevinkempterllc.com> <4841BB5F.5050308@infracaninophile.co.uk> <4841CC69.5000404@unsane.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC3D9D7076C7A4A02F1CBD9A1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Vince Hoffman wrote: > Matthew Seaman wrote: >> kevin kempter wrote: >>> Hi List; >>> >>> I'm fairly new to freeBSD, but a long time Linux biggot. I installed = >>> freeBSD7, then I installed PHP like this: >>> >>> # cd /usr/ports/lang/php5 >>> # make config >>> # make install >>> >>> Next I installed PostgreSQL and pgFouine >>> >>> However when I run pgfouine to generate a log report I get this error= : >>> >>> $ php ./pgfouine.php -file $PGDATA/pg_log/postgresql-31.log > rept.ht= ml >>> PHP Fatal error: Call to undefined function preg_replace() in=20 >>> /usr/local/pgsql/pgfouine/include/reporting/geshi/geshi.php on line 4= 74 >>> >>> preg_replace() I believe is a PHP built-in, anyone know how to=20 >>> correct this, or have thoughts on what I may be doing wrong. Maybe=20 >>> I've missed some sort of config step? >>> >> >> You need to install the PCRE module: >> >> # cd /usr/ports/devel/php5-pcre >> # make install >> >> and similarly for all of the other PHP modules you will undoubtedly >> find yourself needing. >> > A quicker way of doing this is > cd /usr/ports/lang/php5-extensions > make config > then choose what extensions you need, and then > make install clean >=20 Actually, even that is /far/ too much effort. Now you can just install the databases/pgfouine port, which by an intriguing coincidence was commi= tted to the ports tree just last night. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigC3D9D7076C7A4A02F1CBD9A1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkhCZ3UACgkQ8Mjk52CukIyUQwCfW+ixWJjsyj5mP2+ilRGhrNGZ 648Anj6AYHPodCO1LK/M6m4Vhn8Ys9ft =Zb0e -----END PGP SIGNATURE----- --------------enigC3D9D7076C7A4A02F1CBD9A1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4842676C.70401>