Ho to deal with a port conflict involving PHP 5 and Pear?

Hello all,
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
apache-1.3.33_2

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-PEAR_PackageFileManager-1.5.2
    PEAR class to maintain PEAR packages
    Long description | Package | Sources | Main Web Site
    Maintained by: antonio@php.net
    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.

 -eric

chicocarlucciAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
There is PHP as command line tool. Pear uses it.
Deinstall mod_php5 and replace it with php5 , which includes both php module and command line php.
chicocarlucciAuthor Commented:
THanks gheist, but as you see above -
The pear package file manager is stating that it requires
php4-4.4.2_1,

Which will conflict with any other version of PHP that I try to install. Which makes the pear package manager install fail entirely. So I'm pretty sure we're back to where we started again: How do you rectify port conflicts when installing packages in FreeBSD?

 -eric

gheistCommented:
it is happy when it finds /usr/local/bin/php

after you are done with pear install sysutils/portupgrade and run pkgdb -F to resolve broke dependencies (if it really insisted on php4)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept gheist http:#16429255

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.