This repository has been archived by the owner. It is now read-only.

Upgrade to php 5.6.24 : cannot run apxs #3397

Closed
jblaise opened this Issue Jul 27, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@jblaise

jblaise commented Jul 27, 2016

Description

when running a brew upgrade, it failed when doing the configure.

Context and Logs

i was upgrading 4 outdated packages:
homebrew/php/composer 1.2.0, homebrew/php/php56 5.6.24, homebrew/php/php56-intl 5.6.24_1, homebrew/php/php56-mcrypt 5.6.24

Here is the log.

Parameter Value
OS X Version: 10.9.5
Homebrew Version: 0.9.9
PHP Version in use: 5.6.23

Solution

The problem wasn't hard to solve but this error was surprising (as I didn't do anything in apr folder).

cd /usr/local/Cellar/apr
ln -s 1.5.2_1 1.5.2

@javian javian added the 10.9 label Aug 18, 2016

@javian

This comment has been minimized.

Show comment
Hide comment
@javian

javian Aug 18, 2016

Member

Thanks for the report. Not sure what could be causing this issue. It also look weird that a softlink in the Cellar would solve the issue. We would need to see more of the logs to have any type of clue of what could be going on here.

Member

javian commented Aug 18, 2016

Thanks for the report. Not sure what could be causing this issue. It also look weird that a softlink in the Cellar would solve the issue. We would need to see more of the logs to have any type of clue of what could be going on here.

@javian javian added the Needs Info label Aug 18, 2016

@dawoonchung

This comment has been minimized.

Show comment
Hide comment
@dawoonchung

dawoonchung Aug 22, 2016

I had exactly the same problem while upgrading php 7.0.9 to 7.0.10. Solution by @jblaise fixed the issue as well. Here's my log:

Last 15 lines from /Users/USER/Library/Logs/Homebrew/php70/01.configure:
checking for pthreads_lib...

Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

  1. Perl is not installed
  2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
  3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/bin/apxs follows:
apxs:Error: /usr/local/Cellar/apr/1.5.2/libexec/bin/apr-1-config not found!.

configure: error: Aborting

Parameter Value
OS X Version: 10.11.6
Homebrew Version: 0.9.9
PHP Version in Use: 7.0.9

dawoonchung commented Aug 22, 2016

I had exactly the same problem while upgrading php 7.0.9 to 7.0.10. Solution by @jblaise fixed the issue as well. Here's my log:

Last 15 lines from /Users/USER/Library/Logs/Homebrew/php70/01.configure:
checking for pthreads_lib...

Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

  1. Perl is not installed
  2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
  3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/bin/apxs follows:
apxs:Error: /usr/local/Cellar/apr/1.5.2/libexec/bin/apr-1-config not found!.

configure: error: Aborting

Parameter Value
OS X Version: 10.11.6
Homebrew Version: 0.9.9
PHP Version in Use: 7.0.9
@jblaise

This comment has been minimized.

Show comment
Hide comment
@jblaise

jblaise Aug 22, 2016

@javian I don't either know how to reproduce this case. I just posted it to provide help for those who may encounter the same issue as I did not see anything close to this.

jblaise commented Aug 22, 2016

@javian I don't either know how to reproduce this case. I just posted it to provide help for those who may encounter the same issue as I did not see anything close to this.

@javian

This comment has been minimized.

Show comment
Hide comment
@javian

javian Aug 22, 2016

Member

This is also reported in the homebrew-apache tap Homebrew/homebrew-apache#126

Member

javian commented Aug 22, 2016

This is also reported in the homebrew-apache tap Homebrew/homebrew-apache#126

@javian

This comment has been minimized.

Show comment
Hide comment
@javian

javian Aug 23, 2016

Member

I think the problem is found now and all we need is a bottle update of the right Formulas and we should be able to close this.

Member

javian commented Aug 23, 2016

I think the problem is found now and all we need is a bottle update of the right Formulas and we should be able to close this.

@javian

This comment has been minimized.

Show comment
Hide comment
@javian

javian Sep 2, 2016

Member

This should have been corrected now after updating apr, apr-util and the httpd packages.

Member

javian commented Sep 2, 2016

This should have been corrected now after updating apr, apr-util and the httpd packages.

@javian javian closed this Sep 2, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.