More PHP issues (Was: php4-pear / phpize problem)
sfromley at ntlworld.com
Tue Feb 15 10:18:42 PST 2005
Mike Hunter wrote:
> When I try to install /usr/ports/www/mod_php4, I end up not being able to
> install pear, because pear says that it needs /usr/local/bin/php, but I
> can't install /usr/ports/lang/php4 because it conflicts with mod_php :(
My understanding is that anything that used to require mod_php4 now
works with lang/php4 instead. so get rid of mod_php4 completely and get
lang/php4 working. There's a lengthy MAKE_ARGS stanza in my
/usr/local/etc/pkgtools.conf for lang/php4 that goes something like this
(all on one line):
'lang/php4' => 'BATCH=YES WITH_GD=YES WITH_ZLIB=YES
WITH_BZIP2=YES WITH_MCRYPT=YES WITH_MHASH=YES WITH_PDFLIB=YES
WITH_IMAP=YES WITH_OPENSSL=YES WITH_MYSQL=YES WITH_SQLITE=YES
WITH_XML=YES WITH_XMLRPC=YES WITH_XSLT=YES WITH_WDDX=YES
WITH_DOMXML=YES WITH_FTP=YES WITH_CURL=YES WITH_GETTEXT=YES
WITH_ICONV=YES WITH_PSPELL=YES WITH_MIME=YES WITH_MBSTRING=YES
WITH_YP=YES WITH_BCMATH=YES WITH_HYPERWAVE=YES WITH_MCVE=YES
WITH_MING=YES WITH_MCAL=YES WITH_SOCKETS=YES WITH_SYSVSEM=YES
WITH_SYSVSHM=YES WITH_OPENLDAP=YES WITH_CALENDAR=YES WITH_SESSION=YES
WITH_ZIP=YES WITH_DOMXSLT=YES WITH_CTYPE=YES WITH_PCRE=YES
That should make 'portinstall'ing it easier. you probably want
WITH_APACHE2=YES in there too, if that's what you're using.
Once you have apache2 and lang/php4 working, you can move on to beating
perl and pear into submission.
pear-PEAR is dodo-esque, too. You want devel/php4-pear these days.
Although something will always install pear-PEAR for you when you're not
looking. It's impossible to get rid of it completely, and the ports
implementation is (imho) *hateful*.
perl 5.8.5 is best replaced with 5.8.6_2 (read the UPDATING caveat
first) and at least then you won't be chasing use.perl around.
That's my understanding, anyway. But I'm no expert.
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
More information about the freebsd-ports