Here are the dependencies for php5 on my machine:<br><br>php5 has library dependencies on:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxml2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxslt<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openssl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zlib<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libiconv<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expat<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gettext<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tiff<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mhash<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmcrypt<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pcre<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jpeg<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpng<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; freetype<br><br>When i originally tried installing php5 again it required a higher version of pcre than i had.&nbsp; so I deactivated the old version and installed the new version:
<br>The following ports are currently installed:<br>&nbsp; pcre @4.5_0 (active)<br>&nbsp; pcre @7.1_1+utf8<br><br>&nbsp;<br><br>But I can&#39;t see to deactivate the 4.5_0 version because i get the error i stated earlier.&nbsp; I did a selfupdate yesterday and again this morning before trying to uninstall and install php5 but still had the same problems.&nbsp; Like I said earlier I have been able to install other ports so it isn&#39;t like my whole macports installation is busted.&nbsp; Just php5 is giving me an issue right now.
<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 20.06, Evan Burrows wrote:<br><br>&gt; I did try to uninstall php5 first but it gave me the following<br>&gt; error and<br>&gt; didn&#39;t look as though it understood the uninstall command:<br>&gt;<br>
&gt; sudo /opt/local/bin/port uninstall php5<br>&gt; Password:<br>&gt; Error: port uninstall failed: invalid command name<br>&gt; &quot;portuninstall::uninstall&quot;<br>&gt;<br>&gt; So, addressing you comments..<br>&gt;&gt;&gt; I am sorry, if I am wrong, but I understand that you tried to
<br>&gt;&gt;&gt; install<br>&gt;&gt;&gt; php5 +mysql5 &amp;c while having php5 +mysql4 installed?<br>&gt;<br>&gt; I used the clean argument like you mentioned for php5, pcre, and<br>&gt; expat. And<br>&gt; as I said above i tried an uninstall and it failed.. so i
<br>&gt; deactivated php5<br>&gt; and tried to install a new version of php5<br>&gt;<br>&gt;&gt;&gt; It is also hard to understand, where does pcre @4.5_0 come from.<br>&gt;<br>&gt; I have no idea what pcre has to do with a php5 install but when i
<br>&gt; tried<br>&gt; running the php5 install command that was one of the items that<br>&gt; threw the &quot;<br>&gt; Image error: Another version of this port (pcre @4.5_0) is already<br>&gt; active.&quot;<br>&gt; error.&nbsp;&nbsp;For that reason I mentioned that in my original email but
<br>&gt; like I<br>&gt; said I don&#39;t know what the relationship between that and php5 (if<br>&gt; there is<br>&gt; one).<br>&gt;<br>You can see the dependencies doing &#39;port deps&#39;: e.g. &#39;port deps php5&#39;
<br>gives &#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxml2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxslt<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openssl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zlib<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libiconv<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expat<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gettext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tiff<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mhash<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmcrypt<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curl<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pcre<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jpeg<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpng<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; freetype&#39;) basically, variants add to these. If you say<br>&#39;port installed pcre&#39;, you see all installed versions of pcre.<br><br>&gt; I am running 
10.4.9, MacPorts 1.442, Xcode 2.4.1.&nbsp;&nbsp;I really<br>&gt; appreciate your<br>&gt; help since I am relatively new to macports and am a little<br>&gt; frustrated at<br>&gt; this point.<br>&gt;<br>&gt; Thanks for the prompt response!
<br>&gt; Evan<br>&gt;<br>Hi again,<br>I am a bit at loss, because I don&#39;t see any such errors, as:<br>jwa@lan3:midgard&gt; sudo port -f uninstall php5 @5.2.1_3+apache2<br>+darwin_8+macosx+mysql5+pear+postgresql<br>---&gt;&nbsp;&nbsp;Unable to uninstall php5 
5.2.1_3+apache2+darwin_8+macosx+mysql5<br>+pear+postgresql, the following ports depend on it:<br>---&gt;&nbsp;&nbsp;&nbsp;&nbsp;midgard-php4<br>Warning: Uninstall forced.&nbsp;&nbsp;Proceeding despite dependencies.<br>---&gt;&nbsp;&nbsp;Uninstalling php5 5.2.1_3+apache2+darwin_8+macosx+mysql5+pear
<br>+postgresql<br>jwa@lan3:midgard&gt;<br><br>(that was inactive anyway).<br>Have you performed sync or selfupdate lately? You could try cleaning<br>out the whole port system, installing it again from scratch and doing<br>
selfupdate, and install php5 with variants after that. This is a bit<br>of work, but ports do not behave like that in my system, I am on MBP,<br>OS X 10.4.9, Xcode 2.4.1, MP 1.442<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>