Ho to deal with a port conflict involving PHP 5 and Pear?
Posted on 2006-04-10
I am a witless monkey when it comes to FreeBSD, so bear with me.
I have a server with PHP5 as an apache module on apache-1.3.33_2
mod_php5-5.1.2_1,1 PHP Apache Module
Presently I want to install PEAR, and I can't tell if it is already installed. I looked for it using
pkg_info |grep pear
and didn't find anything so I am assuming that it is not installed.
I went to pear.php.net and it seems that my next bet is to try to install the Pear Package Manager.
I went to my ports directory and found the pear package manager port.
---from the FreeBSD Website-----------------
PEAR class to maintain PEAR packages
Long description | Package | Sources | Main Web Site
Maintained by: email@example.com
Requires: apache-1.3.34_4, expat-2.0.0_1, libgnugetopt-1.2, pear-1.4.6, php4-4.4.2_1, php4-pcre-4.4.2_1, php4-xml-4.4.2_1, rc_subr-1.31_1
Also listed in: Devel, Www
WHen I try to make this however, I get the following error:
===> Verifying install for /usr/local/share/pear/PEAR.php in /usr/ports/devel/pear
This port requires the CLI or the CGI version of PHP, but you have
already installed a conflicting PHP port without them.
*** Error code 1
So essentially I have a port conflict. I think my question is more general than what I am asking. Which might be "How do you deal with a port conflict when trying to install a port with a conflicting dependency?" I really don't want to revert my PHP installation to php4-4.4.2_1 but how else am I supposed to install the pear package manager?
I suppose I might be able to install it from source, but won't that negate the benefits of using the FreeBSD package manager?
Any good places for me to look up information on dealing with port conflicts? Links are fine too.