I did try to uninstall php5 first but it gave me the following error and didn't look as though it understood the uninstall command:<br><br>sudo /opt/local/bin/port uninstall php5 <br>Password:<br>Error: port uninstall failed: invalid command name "portuninstall::uninstall"
<br><br>So, addressing you comments..<br>>>I am sorry, if I am wrong, but I understand that you tried to install<br>>>php5 +mysql5 &c while having php5 +mysql4 installed?<br><br>I used the clean argument like you mentioned for php5, pcre, and expat. And as I said above i tried an uninstall and it failed.. so i deactivated php5 and tried to install a new version of php5
<br><br>>>It is also hard to understand, where does pcre @4.5_0 come from.<br><br>I have no idea what pcre has to do with a php5 install but when i tried running the php5 install command that was one of the items that threw the " Image error: Another version of this port (pcre @
4.5_0) is already active." error. For that reason I mentioned that in my original email but like I said I don't know what the relationship between that and php5 (if there is one).<br><br>I am running 10.4.9, MacPorts
1.442, Xcode 2.4.1. I really appreciate your help since I am relatively new to macports and am a little frustrated at this point.<br><br>Thanks for the prompt response!<br>Evan<br><br><br><br><div><span class="gmail_quote">
On 6/2/07, <b class="gmail_sendername">Jyrki Wahlstedt</b> <<a href="mailto:jwa@macports.org">jwa@macports.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On 2.6.2007, at 16.49, Evan Burrows wrote:<br><br>> Sorry,<br>><br>> I am sure this has been asked before but I couldn't find an answer on<br>> google. I currently had a php5 port that had the mysql4 variant
<br>> installed.<br>> I want to add support for mysql5 instead so i tried upgrading with<br>> little<br>> luck. I installed mysql5 fine and then deactivated mysql4 with no<br>> problem.<br>> When I try to then install a new version of php5 using port install
<br>> php5<br>> +apache2 +mysql5 +pear I end up getting errors after waiting a very<br>> long<br>> time for things to compile. The typical error is:<br>><br>> Error: Activating pcre 7.1_1 failed: Image error: Another version
<br>> of this<br>> port (pcre @4.5_0) is already active.<br>> or<br>> Error: Deactivating expat 1.95.7_0 failed: Image error: expat<br>> @1.95.7_0 not<br>> installed as an image.<br>><br>> but in place of expat when i tried to install the php5 directly it
<br>> gave an<br>> error about pcre. I then tried to upgrade all my updated ports<br>> using port<br>> upgrade outdated and some were successful while others got similar<br>> errors as<br>> described above? What is causing this problem and how do I go
<br>> about fixing<br>> it because of of right now my LAMP install is busted and I can't get<br>> anything accomplished until i resolve the php5 issue. Any<br>> information would<br>> be greatly appreciated and if I missed providing any important
<br>> information<br>> please ask and I will gladly supply it.<br>><br>> Thanks,<br>> Evan<br><br>Hi,<br>I am sorry, if I am wrong, but I understand that you tried to install<br>php5 +mysql5 &c while having php5 +mysql4 installed? If you change
<br>variants, you ought to uninstall first, sorry for that. It is also<br>hard to understand, where does pcre @4.5_0 come from.<br>You could:<br>- look at what you have installed with 'port installed' (or e.g. port
<br>installed name:php)<br>- port clean --all expat (, and pcre and php5)<br>- uninstall expat, pcre, and php5 (use -f if necessary)<br>- install them again<br><br>What version of port do you have? What operating system are you
<br>working on? What Xcode version do you have?<br>!<br>! Jyrki Wahlstedt<br>! skype:jyrkiwahlstedt<br>! <a href="http://www.wahlstedt.fi/jyrki/">http://www.wahlstedt.fi/jyrki/</a><br>!<br>! Our life is no dream; but it ought to become one and perhaps will.
<br>! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780<br>6366 EFD9 139C C386<br><br><br><br></blockquote></div><br>