chicocarlucci
asked on
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_PackageFileManag er-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
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_PackageFileManag
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
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
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
Deinstall mod_php5 and replace it with php5 , which includes both php module and command line php.