On Oct 16, 2008, at 8:23 PM, Kevin Horton wrote:

> apache2-mpm-prefork-2.2.9-4 will not install for me on 10.4 PPC,
> failing with:
>
> Preparing to replace apache2 2.2.9-4 (using .../
> apache2_2.2.9-4_darwin-powerpc.deb) ...
> Unpacking replacement apache2 ...
> dpkg: considering removing apache2-mpm-worker in favour of apache2-
> mpm-prefork ...
> apache2-mpm-worker is not properly installed - ignoring any
> dependencies on it.
> dpkg: yes, will remove apache2-mpm-worker in favour of apache2-mpm-
> prefork.
> Unpacking apache2-mpm-prefork (from .../apache2-mpm-
> prefork_2.2.9-4_darwin-powerpc.deb) ...
> apache2: Syntax error on line 183 of /sw/etc/apache2/apache2.conf:
> Syntax error on line 1 of /sw/etc/apache2/mods-enabled/php5.load: API
> module structure 'php5_module' in file /sw/lib/apache2/modules/
> libphp5.so is garbled - expected signature 41503232 but saw 41503230
> - perhaps this is not an Apache module DSO, or was compiled for a
> different Apache version?
> /sw/bin/dpkg: error processing /sw/fink/dists/unstable/main/binary-
> darwin-powerpc/web/apache2-mpm-prefork_2.2.9-4_darwin-powerpc.deb (--
> install):
>  subprocess pre-removal script returned error exit status 1
> apache2: Syntax error on line 183 of /sw/etc/apache2/apache2.conf:
> Syntax error on line 1 of /sw/etc/apache2/mods-enabled/php5.load: API
> module structure 'php5_module' in file /sw/lib/apache2/modules/
> libphp5.so is garbled - expected signature 41503232 but saw 41503230
> - perhaps this is not an Apache module DSO, or was compiled for a
> different Apache version?
> dpkg: error while cleaning up:
>  subprocess post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of apache2:
>  apache2 depends on apache2-mpm-prefork (= 2.2.9-4) | apache2-mpm-
> worker (= 2.2.9-4) | apache2-mpm-event (= 2.2.9-4); however:
>   Package apache2-mpm-prefork is not installed.
>   Version of apache2-mpm-worker on system is 2.2.9-3.
>   Package apache2-mpm-event is not installed.
> /sw/bin/dpkg: error processing apache2 (--install):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  /sw/fink/dists/unstable/main/binary-darwin-powerpc/web/apache2-mpm-
> prefork_2.2.9-4_darwin-powerpc.deb
>  apache2
> ### execution of /sw/bin/dpkg-lockwait failed, exit code 1
> Failed: can't batch-install packages: /sw/fink/dists/unstable/main/
> binary-darwin-powerpc/web/apache2_2.2.9-4_darwin-powerpc.deb /sw/fink/
> dists/unstable/main/binary-darwin-powerpc/web/apache2-mpm-
> prefork_2.2.9-4_darwin-powerpc.deb
>
>
> =========
> line 183 of /sw/etc/apache2/apache2.conf is:
>
> Include /sw/etc/apache2/mods-enabled/*.load
>
> line 1 of /sw/etc/apache2/mods-enabled/php5.load is:
>
> LoadModule php5_module /sw/lib/apache2/modules/libphp5.so
>
> =========
> I tried to rebuild libapache2-mod-php5, but it won't build until
> apache2-mpm-prefork is installed, and apache2-mpm-prefork won't
> install because it complains about libphp5 that may have been built
> for an older version of apache.
>
> Next, I tried removing libapache2-mod-php5, so I could hopefully
> install apache2-mpm-prefork, and then rebuild libapache2-mod-php5.
> But, that failed with:
>
> % fink remove --recursive libapache2-mod-php5
> Information about 8234 packages read in 7 seconds.
> /sw/bin/apt-get-lockwait remove libapache2-mod-php5
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these:
> Sorry, but the following packages have unmet dependencies:
>   apache2: Depends: apache2-mpm-prefork (= 2.2.9-4) but it is not
> going to be installed or
>                     apache2-mpm-worker (= 2.2.9-4) but 2.2.9-3 is to
> be installed or
>                     apache2-mpm-event (= 2.2.9-4) but it is not
> going to be installed
>   apache2-mpm-worker: Depends: apache2-common (= 2.2.9-3) but
> 2.2.9-4 is to be installed
>   php5-mysql: Depends: libapache2-mod-php5 (= 5.1.4-22) but it is
> not going to be installed or
>                        php5-cgi (= 5.1.4-22) but it is not going to
> be installed or
>                        php5-cli (= 5.1.4-22) but it is not going to
> be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> ### execution of /sw/bin/apt-get-lockwait failed, exit code 100
> Failed: can't remove package libapache2-mod-php5
>
> % sudo apt-get -f install
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
>   apache2-mpm-worker
> 1 packages upgraded, 0 newly installed, 0 to remove and 2  not  
> upgraded.
> 2 packages not fully installed or removed.
> Need to get 0B/396kB of archives. After unpacking 0B will be used.
> Do you want to continue? [Y/n]
> (Reading database ... 163435 files and directories currently  
> installed.)
> Preparing to replace apache2-mpm-worker 2.2.9-3 (using .../apache2-
> mpm-worker_2.2.9-4_darwin-powerpc.deb) ...
> Unpacking replacement apache2-mpm-worker ...
> Setting up apache2-mpm-worker (2.2.9-4) ...
> apache2: Syntax error on line 183 of /sw/etc/apache2/apache2.conf:
> Syntax error on line 1 of /sw/etc/apache2/mods-enabled/php5.load: API
> module struc
> /sw/bin/dpkg: error processing apache2-mpm-worker (--configure):
>  subprocess post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of apache2:
>  apache2 depends on apache2-mpm-prefork (= 2.2.9-4) | apache2-mpm-
> worker (= 2.2.9-4) | apache2-mpm-event (= 2.2.9-4); however:
>   Package apache2-mpm-prefork is not installed.
>   Package apache2-mpm-worker is not configured yet.
>   Package apache2-mpm-event is not installed.
> /sw/bin/dpkg: error processing apache2 (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  apache2-mpm-worker
>  apache2
> E: Sub-process /sw/bin/dpkg returned an error code (1)
>
>
>
> I'm not sure how to untie this knot.  Any advice is appreciated.
>
> --
> Kevin Horton
> Ottawa, Canada
>
>


See if you can disable the existing php module that's complaining via  
"sudo a2dismod php5"

If that fails maybe try manually (shudder) moving /sw/etc/apache2/mods- 
enabled/php5.load out of the way.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to