Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 18:18:55 +0000
From:      Eliot Earle <sfromley@ntlworld.com>
To:        Mike Hunter <mhunter@ack.Berkeley.EDU>
Cc:        freebsd-ports@www.freebsd.org
Subject:   Re: More PHP issues (Was: php4-pear / phpize problem)
Message-ID:  <42123D0F.6030301@ntlworld.com>
In-Reply-To: <20050215174822.GA1140@ack.Berkeley.EDU>
References:  <20050214193701.GA23360@ack.Berkeley.EDU> <20050214204341.GB82128@graf.pompo.net> <20050215174822.GA1140@ack.Berkeley.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
WITH_POSIX=YES WITH_TOKENIZER=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42123D0F.6030301>