Opened 9 years ago
Closed 9 years ago
#49546 closed defect (invalid)
Updating php56-apache2handler 5.6.14_0 < 5.6.15_0 gives configure error
Reported by: | murrayeisenberg@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | php56-apache2handler |
Description
Just now with MacPorts 2.3.4 under El Capitan 10.11.1, trying to upgrade
php56-apache2handler 5.6.14_0 < 5.6.15_0
led to a configure error. The log shows:
:info:configure checking for Apache 2.0 handler-module support via DSO through APXS... :info:configure :info:configure Sorry, I cannot run apxs. Possible reasons follow: :info:configure :info:configure 1. Perl is not installed :info:configure 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs :info:configure 3. Apache was not built using --enable-so (the apxs usage page is displayed) :info:configure :info:configure The output of /opt/local/apache2/bin/apxs follows: :info:configure ./configure: /opt/local/apache2/bin/apxs: /opt/local/bin/perl: bad interpreter: No such file or directory :info:configure configure: error: Aborting
(1) Perl _is_ installed:
sudo port installed | grep perl5 : : perl5 @5.16.3_0+perl5_16 perl5 @5.16.3_0+perl5_20 perl5.12 @5.12.5_0 perl5.16 @5.16.3_1 (active) perl5.18 @5.18.4_1 (active) perl5.20 @5.20.3_0 (active) perl5.22 @5.22.0_0 (active)
(2) And apxs is installed and ought to be found:
which apxs /opt/local/apache2/bin/apxs echo $PATH /opt/local/bin: ... /opt/local/apache2/bin
Which leaves possible reason (3), "Apache was not built using --enable-so (the apxs usage page is displayed)".
I find:
httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c
So what does "not built using --enable-so" mean and how should this be fixed?
Note that after migrating macports from Yosemite to El Capitan, I had no trouble installing the earlier version of php56-apache2handler.
The full main.log is attached.
Attachments (1)
Change History (3)
Changed 9 years ago by murrayeisenberg@…
comment:1 Changed 9 years ago by murrayeisenberg@…
My error, I forgot the step
sudo port install perl5 +perl5_16
so as to actually have perl5 do anything. thanks to Brian Albert (via MacPorts Users <macports-users@…>).
comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
php56-apache2handler depends on apache2, which depends on perl5, but you don't have perl5 active. The solution is to activate perl5.
P.S: In the future, remember to Cc the maintainer of the port so they (in this case I) see the ticket sooner.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php56-apache2handler/main.log