php5 upgrade today
Mark Hattam
mark at dxradio.demon.co.uk
Sat May 24 05:24:24 PDT 2008
At 18:21 -0500 23/5/08, Ryan Schmidt wrote:
>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.
Ah OK ... I've now done the X11User optional install off the Tiger DVD.
And it gets a little further ... but only a little ...
Powerbook:~ $ sudo port install php5 +apache2 +mysql5 +sqlite
Password:
---> Fetching fontconfig
---> Attempting to fetch fontconfig-2.5.0.tar.gz from
http://fontconfig.org/release/
---> Verifying checksum(s) for fontconfig
---> Extracting fontconfig
---> Configuring fontconfig
Error: Target org.macports.configure returned: configure failure:
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.5.0"
&& ./configure --prefix=/opt/local
--docdir=/opt/local/share/doc/fontconfig-2.5.0 --disable-docs
--with-add-fonts=/usr/X11R6/lib/X11/fonts,/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts,/opt/local/share/fonts
" returned error 77
Command output: checking for a BSD-compatible install... /usr/bin/install
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Error: The following dependencies failed to build: gd2 fontconfig
Error: Status 1 encountered during processing.
Mark
More information about the macports-users
mailing list