php5 upgrade today

Ryan Schmidt ryandesign at macports.org
Fri May 23 16:21:06 PDT 2008


On May 23, 2008, at 17:21, Mark Hattam wrote:

> At 16:54 -0500 23/5/08, Ryan Schmidt wrote:
>
>> On May 23, 2008, at 15:36, Mark Hattam wrote:
>>
>>> I saw Ryandesign's php update this morning, and I just ran a
>>>
>>> Powerbook:~ $ sudo port -d selfupdate
>>>
>>> then a
>>>
>>> Powerbook:~ $ sudo port outdated
>>> The following installed ports are outdated:
>>> php5                           5.2.6_0 < 5.2.6_1
>>>
>>> But then doing a upgrade outdated failed ...
>>>
>>> Powerbook:~ $ sudo port upgrade outdated
>>> --->  Activating php5 5.2.6_0+apache2+macosx+mysql5+sqlite
>>> Error: Activating php5 5.2.6_0 failed: Image error: php5
>>> @5.2.6_0+apache2+macosx+mysql5+sqlite is already active.
>>>
>>> the "upgrade outdated" usually works for me, so what am I doing  
>>> wrong
>>> this time?
>>
>> hmm.... I have to recommend uninstalling your php5 and cleaning  
>> your php5 work directory, then building the new one.
>>
>> sudo port -f uninstall php5 @5.2.6_0+apache2+macosx+mysql5+sqlite
>> sudo port clean --work php5
>> sudo port install php5 +apache2 +mysql5 +sqlite
>
> Hmm ... that started off OK, but then got much worse ...
>
> Powerbook:~ $ sudo port outdated
> The following installed ports are outdated:
> php5                           5.2.6_0 < 5.2.6_1
>
> Powerbook:~ $ sudo port upgrade outdated
> --->  Activating php5 5.2.6_0+apache2+macosx+mysql5+sqlite
> Error: Activating php5 5.2.6_0 failed: Image error: php5 @5.2.6_0 
> +apache2+macosx+mysql5+sqlite is already active.
>
> Powerbook:~ $ sudo port -f uninstall php5 @5.2.6_0+apache2+macosx 
> +mysql5+sqlite
> --->  Deactivating php5 5.2.6_0+apache2+macosx+mysql5+sqlite
> --->  Uninstalling php5 5.2.6_0+apache2+macosx+mysql5+sqlite
>
> Powerbook:~ $ sudo port clean --work php5
> Portfile changed since last build; discarding previous state.
> --->  Cleaning php5
>
> Powerbook:~ $ sudo port install php5 +apache2 +mysql5 +sqlite
> --->  Fetching XFree86
> Error: Target org.macports.fetch returned:
>
>                     You have an Apple X11SDK installation already.
>                         MacPorts will not overwrite it.
>
>                     If you wish to use Apple X11,
>                         install it from your Mac OS X install disc.
>
>                     If you really want to use XFree86 instead,
>                         please move it aside first :
>
>                             sudo mv /usr/X11R6 /usr/X11R6.apple
>            Error: The following dependencies failed to build: gd2  
> XFree86 fontconfig
> Error: Status 1 encountered during processing.

The change in php5 5.2.6_1 is that it now uses the gd2 port to  
provide the gd graphics library, instead of the older gd library  
included with the php source. The gd2 port requires an X11  
installation, unless you use its +no_x11 variant.

You appear to have part, but not all, of an Apple X11 installation.  
You can either complete your Apple X11 installation (I recommend  
this), or you can remove your Apple X11 installation and use XFree86  
(or xorg) instead if you prefer. Or you can install the gd2 port with  
the +no_x11 variant; then it won't care that your X11 is incomplete.

To complete your Apple X11 installation, install X11User from your  
Mac OS X DVD and X11SDK from your Xcode disk image. You already have  
one, but not the other. To figure out which you have, look in / 
Library/Receipts. Then install the one you don't have. According to  
the message the XFree86 port printed for you, you already have  
X11SDK. So I believe you need to install X11User from your Mac OS X DVD.




More information about the macports-users mailing list