question about upgrading port (getting errors)
Sorry, I am sure this has been asked before but I couldn't find an answer on google. I currently had a php5 port that had the mysql4 variant installed. I want to add support for mysql5 instead so i tried upgrading with little luck. I installed mysql5 fine and then deactivated mysql4 with no problem. When I try to then install a new version of php5 using port install php5 +apache2 +mysql5 +pear I end up getting errors after waiting a very long time for things to compile. The typical error is: Error: Activating pcre 7.1_1 failed: Image error: Another version of this port (pcre @4.5_0) is already active. or Error: Deactivating expat 1.95.7_0 failed: Image error: expat @1.95.7_0 not installed as an image. but in place of expat when i tried to install the php5 directly it gave an error about pcre. I then tried to upgrade all my updated ports using port upgrade outdated and some were successful while others got similar errors as described above? What is causing this problem and how do I go about fixing it because of of right now my LAMP install is busted and I can't get anything accomplished until i resolve the php5 issue. Any information would be greatly appreciated and if I missed providing any important information please ask and I will gladly supply it. Thanks, Evan
On 2.6.2007, at 16.49, Evan Burrows wrote:
Sorry,
I am sure this has been asked before but I couldn't find an answer on google. I currently had a php5 port that had the mysql4 variant installed. I want to add support for mysql5 instead so i tried upgrading with little luck. I installed mysql5 fine and then deactivated mysql4 with no problem. When I try to then install a new version of php5 using port install php5 +apache2 +mysql5 +pear I end up getting errors after waiting a very long time for things to compile. The typical error is:
Error: Activating pcre 7.1_1 failed: Image error: Another version of this port (pcre @4.5_0) is already active. or Error: Deactivating expat 1.95.7_0 failed: Image error: expat @1.95.7_0 not installed as an image.
but in place of expat when i tried to install the php5 directly it gave an error about pcre. I then tried to upgrade all my updated ports using port upgrade outdated and some were successful while others got similar errors as described above? What is causing this problem and how do I go about fixing it because of of right now my LAMP install is busted and I can't get anything accomplished until i resolve the php5 issue. Any information would be greatly appreciated and if I missed providing any important information please ask and I will gladly supply it.
Thanks, Evan
Hi, I am sorry, if I am wrong, but I understand that you tried to install php5 +mysql5 &c while having php5 +mysql4 installed? If you change variants, you ought to uninstall first, sorry for that. It is also hard to understand, where does pcre @4.5_0 come from. You could: - look at what you have installed with 'port installed' (or e.g. port installed name:php) - port clean --all expat (, and pcre and php5) - uninstall expat, pcre, and php5 (use -f if necessary) - install them again What version of port do you have? What operating system are you working on? What Xcode version do you have? ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
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: sudo /opt/local/bin/port uninstall php5 Password: Error: port uninstall failed: invalid command name "portuninstall::uninstall" So, addressing you comments..
I am sorry, if I am wrong, but I understand that you tried to install php5 +mysql5 &c while having php5 +mysql4 installed?
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
It is also hard to understand, where does pcre @4.5_0 come from.
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). 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. Thanks for the prompt response! Evan On 6/2/07, Jyrki Wahlstedt <jwa@macports.org> wrote:
On 2.6.2007, at 16.49, Evan Burrows wrote:
Sorry,
I am sure this has been asked before but I couldn't find an answer on google. I currently had a php5 port that had the mysql4 variant installed. I want to add support for mysql5 instead so i tried upgrading with little luck. I installed mysql5 fine and then deactivated mysql4 with no problem. When I try to then install a new version of php5 using port install php5 +apache2 +mysql5 +pear I end up getting errors after waiting a very long time for things to compile. The typical error is:
Error: Activating pcre 7.1_1 failed: Image error: Another version of this port (pcre @4.5_0) is already active. or Error: Deactivating expat 1.95.7_0 failed: Image error: expat @1.95.7_0 not installed as an image.
but in place of expat when i tried to install the php5 directly it gave an error about pcre. I then tried to upgrade all my updated ports using port upgrade outdated and some were successful while others got similar errors as described above? What is causing this problem and how do I go about fixing it because of of right now my LAMP install is busted and I can't get anything accomplished until i resolve the php5 issue. Any information would be greatly appreciated and if I missed providing any important information please ask and I will gladly supply it.
Thanks, Evan
Hi, I am sorry, if I am wrong, but I understand that you tried to install php5 +mysql5 &c while having php5 +mysql4 installed? If you change variants, you ought to uninstall first, sorry for that. It is also hard to understand, where does pcre @4.5_0 come from. You could: - look at what you have installed with 'port installed' (or e.g. port installed name:php) - port clean --all expat (, and pcre and php5) - uninstall expat, pcre, and php5 (use -f if necessary) - install them again
What version of port do you have? What operating system are you working on? What Xcode version do you have? ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
On 2.6.2007, at 20.06, Evan Burrows wrote:
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:
sudo /opt/local/bin/port uninstall php5 Password: Error: port uninstall failed: invalid command name "portuninstall::uninstall"
So, addressing you comments..
I am sorry, if I am wrong, but I understand that you tried to install php5 +mysql5 &c while having php5 +mysql4 installed?
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
It is also hard to understand, where does pcre @4.5_0 come from.
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).
You can see the dependencies doing 'port deps': e.g. 'port deps php5' gives ' libxml2 libxslt openssl zlib libiconv expat gettext tiff mhash libmcrypt curl pcre jpeg libpng freetype') basically, variants add to these. If you say 'port installed pcre', you see all installed versions of pcre.
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.
Thanks for the prompt response! Evan
Hi again, I am a bit at loss, because I don't see any such errors, as: jwa@lan3:midgard> sudo port -f uninstall php5 @5.2.1_3+apache2 +darwin_8+macosx+mysql5+pear+postgresql ---> Unable to uninstall php5 5.2.1_3+apache2+darwin_8+macosx+mysql5 +pear+postgresql, the following ports depend on it: ---> midgard-php4 Warning: Uninstall forced. Proceeding despite dependencies. ---> Uninstalling php5 5.2.1_3+apache2+darwin_8+macosx+mysql5+pear +postgresql jwa@lan3:midgard> (that was inactive anyway). Have you performed sync or selfupdate lately? You could try cleaning out the whole port system, installing it again from scratch and doing selfupdate, and install php5 with variants after that. This is a bit of work, but ports do not behave like that in my system, I am on MBP, OS X 10.4.9, Xcode 2.4.1, MP 1.442 ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
Here are the dependencies for php5 on my machine: php5 has library dependencies on: libxml2 libxslt openssl zlib libiconv expat gettext tiff mhash libmcrypt curl pcre jpeg libpng freetype When i originally tried installing php5 again it required a higher version of pcre than i had. so I deactivated the old version and installed the new version: The following ports are currently installed: pcre @4.5_0 (active) pcre @7.1_1+utf8 But I can't see to deactivate the 4.5_0 version because i get the error i stated earlier. I did a selfupdate yesterday and again this morning before trying to uninstall and install php5 but still had the same problems. Like I said earlier I have been able to install other ports so it isn't like my whole macports installation is busted. Just php5 is giving me an issue right now. On 6/2/07, Jyrki Wahlstedt <jwa@macports.org> wrote:
On 2.6.2007, at 20.06, Evan Burrows wrote:
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:
sudo /opt/local/bin/port uninstall php5 Password: Error: port uninstall failed: invalid command name "portuninstall::uninstall"
So, addressing you comments..
I am sorry, if I am wrong, but I understand that you tried to install php5 +mysql5 &c while having php5 +mysql4 installed?
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
It is also hard to understand, where does pcre @4.5_0 come from.
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).
You can see the dependencies doing 'port deps': e.g. 'port deps php5' gives ' libxml2 libxslt openssl zlib libiconv expat gettext tiff mhash libmcrypt curl pcre jpeg libpng freetype') basically, variants add to these. If you say 'port installed pcre', you see all installed versions of pcre.
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.
Thanks for the prompt response! Evan
Hi again, I am a bit at loss, because I don't see any such errors, as: jwa@lan3:midgard> sudo port -f uninstall php5 @5.2.1_3+apache2 +darwin_8+macosx+mysql5+pear+postgresql ---> Unable to uninstall php5 5.2.1_3+apache2+darwin_8+macosx+mysql5 +pear+postgresql, the following ports depend on it: ---> midgard-php4 Warning: Uninstall forced. Proceeding despite dependencies. ---> Uninstalling php5 5.2.1_3+apache2+darwin_8+macosx+mysql5+pear +postgresql jwa@lan3:midgard>
(that was inactive anyway). Have you performed sync or selfupdate lately? You could try cleaning out the whole port system, installing it again from scratch and doing selfupdate, and install php5 with variants after that. This is a bit of work, but ports do not behave like that in my system, I am on MBP, OS X 10.4.9, Xcode 2.4.1, MP 1.442 ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
On 2.6.2007, at 20.49, Evan Burrows wrote:
Here are the dependencies for php5 on my machine:
php5 has library dependencies on: libxml2 libxslt openssl zlib libiconv expat gettext tiff mhash libmcrypt curl pcre jpeg libpng freetype
When i originally tried installing php5 again it required a higher version of pcre than i had. so I deactivated the old version and installed the new version: The following ports are currently installed: pcre @4.5_0 (active) pcre @7.1_1+utf8
But I can't see to deactivate the 4.5_0 version because i get the error i stated earlier. I did a selfupdate yesterday and again this morning before trying to uninstall and install php5 but still had the same problems. Like I said earlier I have been able to install other ports so it isn't like my whole macports installation is busted. Just php5 is giving me an issue right now.
Hi, looking at this, I'd suggest the following: 'port -f uninstall pcre @4.5_0' followed by 'port activate pcre @7.1_1+utf8'. Good that other ports behave well! ! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
The problem is that it refuses to recognize the uninstall command. I don't really want to go through the hassle of reinstalling macports because I have other ports installed on my machine and I don't want to have to wait until sometime tomorrow for everything to finish compiling. But if that is the only way to fix this php and uninstall issue then I guess that is what I will have to do. $ sudo /opt/local/bin/port -f uninstall pcre @4.5_0 Password: Error: port uninstall failed: invalid command name "portuninstall::uninstall" I am really sorry for taking up so much of your time but I appreciate the help. thanks, Evan On 6/2/07, Jyrki Wahlstedt <jwa@macports.org> wrote:
On 2.6.2007, at 20.49, Evan Burrows wrote:
Here are the dependencies for php5 on my machine:
php5 has library dependencies on: libxml2 libxslt openssl zlib libiconv expat gettext tiff mhash libmcrypt curl pcre jpeg libpng freetype
When i originally tried installing php5 again it required a higher version of pcre than i had. so I deactivated the old version and installed the new version: The following ports are currently installed: pcre @4.5_0 (active) pcre @7.1_1+utf8
But I can't see to deactivate the 4.5_0 version because i get the error i stated earlier. I did a selfupdate yesterday and again this morning before trying to uninstall and install php5 but still had the same problems. Like I said earlier I have been able to install other ports so it isn't like my whole macports installation is busted. Just php5 is giving me an issue right now.
Hi, looking at this, I'd suggest the following: 'port -f uninstall pcre @4.5_0' followed by 'port activate pcre @7.1_1+utf8'. Good that other ports behave well!
! ! Jyrki Wahlstedt ! skype:jyrkiwahlstedt ! http://www.wahlstedt.fi/jyrki/ ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
participants (2)
-
Evan Burrows
-
Jyrki Wahlstedt