On Sun, Aug 01, 2004 at 03:24:12PM -0500, Comrade Burnout wrote:

> when i try to use pkg_add ... i get the following:
> burnt# pkg_add -r pear-DB
> Fetching 
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2.1-release/Latest/pear-DB.tbz...
> Done.
> Fetching 
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2.1-release/All/php4-4.3.4_2.tbz...
> Done.
> pkg_add: package 'php4-4.3.4_2' conflicts with mod_php4-4.3.4_2,1
> pkg_add: please use pkg_delete first to remove conflicting package(s) or 
> -f to force installation
> pkg_add: pkg_add of dependency 'php4-4.3.4_2' failed!
> is there a way to tweak the Makefile locally to force the PEAR install 
> to use the existing PHP version?

What Makefile? You're installing via packages, and by the time the
package has been built, there's no more need for Makefiles...

In order to solve your problem, you can follow the instructions so
helpfully printed out by pkg_add(1) and use the '-f' flag.  That
should work fine, as mod_php4 will fulfil the dependencies.

Alternately, don't use packages to install PEAR modules.  Ports are
rather more flexible in this respect than packages, and for such
things as PEAR where what's installed is pretty much program source
code it makes little practical difference.

The only problem with this approach is that you seem to be using a
ports tree from around the time of 5.2.1-RELEASE, and since then both
the ports tree and the available versions of the PEAR modules have had
many months of further development.  It's possible that new versions
of some modules will have been released and the ones you want have
been removed.

But the answer to that is just a cvsup(1) away.


Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Attachment: pgpW4klgAMG8p.pgp
Description: PGP signature

Reply via email to