I did try to uninstall php5 first but it gave me the following error and didn&#39;t look as though it understood the uninstall command:<br><br>sudo /opt/local/bin/port uninstall php5&nbsp; <br>Password:<br>Error: port uninstall failed: invalid command name &quot;portuninstall::uninstall&quot;
<br><br>So, addressing you comments..<br>&gt;&gt;I am sorry, if I am wrong, but I understand that you tried to install<br>&gt;&gt;php5 +mysql5 &amp;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>&gt;&gt;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 &quot; Image error: Another version of this port (pcre @
4.5_0) is already active.&quot; error.&nbsp; For that reason I mentioned that in my original email but like I said I don&#39;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.&nbsp; 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> &lt;<a href="mailto:jwa@macports.org">jwa@macports.org</a>&gt; 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>&gt; Sorry,<br>&gt;<br>&gt; I am sure this has been asked before but I couldn&#39;t find an answer on<br>&gt; google.&nbsp;&nbsp;I currently had a php5 port that had the mysql4 variant
<br>&gt; installed.<br>&gt; I want to add support for mysql5 instead so i tried upgrading with<br>&gt; little<br>&gt; luck.&nbsp;&nbsp;I installed mysql5 fine and then deactivated mysql4 with no<br>&gt; problem.<br>&gt; When I try to then install a new version of php5 using port install
<br>&gt; php5<br>&gt; +apache2 +mysql5 +pear I end up getting errors after waiting a very<br>&gt; long<br>&gt; time for things to compile.&nbsp;&nbsp;The typical error is:<br>&gt;<br>&gt; Error: Activating pcre 7.1_1 failed: Image error: Another version
<br>&gt; of this<br>&gt; port (pcre @4.5_0) is already active.<br>&gt; or<br>&gt; Error: Deactivating expat 1.95.7_0 failed: Image error: expat<br>&gt; @1.95.7_0 not<br>&gt; installed as an image.<br>&gt;<br>&gt; but in place of expat when i tried to install the php5 directly it
<br>&gt; gave an<br>&gt; error about pcre.&nbsp;&nbsp;I then tried to upgrade all my updated ports<br>&gt; using port<br>&gt; upgrade outdated and some were successful while others got similar<br>&gt; errors as<br>&gt; described above?&nbsp;&nbsp;What is causing this problem and how do I go
<br>&gt; about fixing<br>&gt; it because of of right now my LAMP install is busted and I can&#39;t get<br>&gt; anything accomplished until i resolve the php5 issue.&nbsp;&nbsp;Any<br>&gt; information would<br>&gt; be greatly appreciated and if I missed providing any important
<br>&gt; information<br>&gt; please ask and I will gladly supply it.<br>&gt;<br>&gt; Thanks,<br>&gt; Evan<br><br>Hi,<br>I am sorry, if I am wrong, but I understand that you tried to install<br>php5 +mysql5 &amp;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 &#39;port installed&#39; (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>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; skype:jyrkiwahlstedt<br>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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&nbsp;&nbsp;A780<br>6366 EFD9 139C C386<br><br><br><br></blockquote></div><br>