Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 931
  • Last Modified:

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

0
chicocarlucci
Asked:
chicocarlucci
  • 3
1 Solution
 
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.
0
 
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

0
 
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)
0
 
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
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now