more woes with php 5.2.6
Mark Hattam
mark at dxradio.demon.co.uk
Fri Jul 25 14:40:06 PDT 2008
At 17:30 -0500 24/7/08, Ryan Schmidt wrote:
>On Jul 24, 2008, at 16:30, Mark Hattam wrote:
>
>>>On Jul 22, 2008, at 14:08, Mark Hattam wrote:
>>>
>>>>After a shutdown & restart, the Powerbook (10.4.11) wouldn't run up
>>>>Apache/php5 ... so tried uninstalling and re-installing ... Apache by
>>>>itself seems OK, but php5 won't install. Obviously it had previously,
>>>>when 5.2.6_1 first worked, but now it wont. I'm up to date on port
>>>>sync (selfupdate).
>>>>
>>>>
>>>>Powerbook:~ $ sudo port install php5 @5.2.6_1+apache2+macosx+mysql5+sqlite
>>>>
>>>>---> Building php5 with target all
>>>>Error: Target org.macports.build returned: shell command " cd
>>>>"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6"
>>>>&& make all " returned error 2
>>>
>>>[snip]
>>>
>>>>/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open
>>>>dynamic library: /opt/local/lib/libxml2.2.dylib referenced from:
>>>>/opt/local/lib/libexslt.dylib (checking for undefined symbols may be
>>>>affected) (No such file or directory, errno = 2)
>>>>/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
>>>>_xmlTextReaderSchemaValidate
>>>>_xmlTextReaderSetup
>>>>collect2: ld returned 1 exit status
>>>>make: *** [libs/libphp5.bundle] Error 1
>>>>
>>>>Error: Status 1 encountered during processing.
>>>
>>>It seems you do not have /opt/local/lib/libxml2.2.dylib
>>>I wonder why not.
>>>On my system, that is a symlink to libxml2.2.6.32.dylib and it's
>>>provided by the libxml2 port.
>>>What version of the libxml2 port do you have installed?
>>>Try "port installed libxml2"
>>
>>Yes, that's pretty much what I thought ... how has it gone? I
>>usually only do reboots on the PowerBook after Apple updates. But
>>on Saturday I shut it down and restarted it in the evening. On
>>restart I found Apache2 wouldn't run, which is a rather big blow.
>>
>>Welcome to Darwin!
>>modem-645:~ $ sudo port installed libxml2
>>The following ports are currently installed:
>> libxml2 @2.6.31_0
>> libxml2 @2.6.32_0
>> libxml2 @2.6.32_1 (active)
>
>
>Try
>
>sudo port deactivate libxml2 @2.6.32_1
>sudo port activate libxml2 @2.6.32_1
>
>Does that bring back the /opt/local/lib/libxml2.2.dylib symlink?
modem-3637:~ $ sudo port deactivate libxml2 @2.6.32_1
---> Deactivating libxml2 2.6.32_1
modem-3637:~ $ sudo port activate libxml2 @2.6.32_1
---> Activating libxml2 2.6.32_1
modem-3637:~ $ cd /opt/local/lib/
modem-3637:/opt/local/lib $ ls -la
lrwxr-xr-x 1 root admin 9 Jul 25 22:33 libxml2 -> libxml2.2
-rwxr-xr-x 2 root admin 1319504 Jul 4 01:53 libxml2.2
lrwxr-xr-x 1 root admin 9 Jul 25 22:33 libxml2.2.6.32
-> libxml2.2
-rwxr-xr-x 2 root admin 835 Jul 4 01:53 libxml2.la
Doesn't seem to have (re-)added a link here. And trying to install
php5 still results in the same error.
Mark
More information about the macports-users
mailing list