{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/3528","repository_url":"https://api.github.com/repos/Homebrew/homebrew-php","labels_url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/3528/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/3528/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/3528/events","html_url":"https://github.com/Homebrew/homebrew-php/issues/3528","id":172823720,"number":3528,"title":"[php56] Failure When Building PHP v5.6.25_1 From Source on OS X 10..11.6 'El Capitan'","user":{"login":"RandomDSdevel","id":7728575,"avatar_url":"https://avatars.githubusercontent.com/u/7728575?v=3","gravatar_id":"","url":"https://api.github.com/users/RandomDSdevel","html_url":"https://github.com/RandomDSdevel","followers_url":"https://api.github.com/users/RandomDSdevel/followers","following_url":"https://api.github.com/users/RandomDSdevel/following{/other_user}","gists_url":"https://api.github.com/users/RandomDSdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomDSdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomDSdevel/subscriptions","organizations_url":"https://api.github.com/users/RandomDSdevel/orgs","repos_url":"https://api.github.com/users/RandomDSdevel/repos","events_url":"https://api.github.com/users/RandomDSdevel/events{/privacy}","received_events_url":"https://api.github.com/users/RandomDSdevel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-23T22:35:02Z","updated_at":"2016-08-24T17:30:31Z","closed_at":"2016-08-24T17:30:31Z","body":"## Description\r\n\r\nBuilding from source failed when `configure` tried to run `apxs`.  Here is the error message:  \r\n\r\n```\r\nSorry, I cannot run apxs.  Possible reasons follow:\r\n\r\n1. Perl is not installed\r\n2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs\r\n3. Apache was not built using --enable-so (the apxs usage page is displayed)\r\n\r\nThe output of /usr/local/bin/apxs follows:\r\napxs:Error: /usr/local/Cellar/apr/1.5.2/libexec/bin/apr-1-config not found!.\r\n```\r\n\r\nThis looks like a linkage error to me, and I recently updated `apr` without updating `apr-util`.  `brew info apr` returns the following information:  \r\n\r\n```\r\nApache Portable Runtime library\r\nhttps://apr.apache.org/\r\n/usr/local/Cellar/apr/1.5.2_1 (56 files, 1.6M)\r\n  Built from source on 2016-07-26 at 16:36:23 with: --universal\r\nFrom: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apr.rb\r\n==> Options\r\n--universal\r\n\tBuild a universal binary\r\n==> Caveats\r\nThis formula is keg-only, which means it was not symlinked into /usr/local.\r\n\r\nApple's CLT package contains apr.\r\n```\r\n\r\n`brew info apr-util` returns the following information:  \r\n\r\n```\r\napr-util: stable 1.5.4 (bottled) [keg-only]\r\nCompanion library to apr, the Apache Portable Runtime library\r\nhttps://apr.apache.org/\r\n/usr/local/Cellar/apr-util/1.5.4_1 (62 files, 805.9K)\r\n  Built from source on 2016-03-07 at 15:53:06 with: --with-freetds --with-mysql --with-postgresql --with-sqlite --with-unixodbc\r\nFrom: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apr-util.rb\r\n==> Dependencies\r\nRequired: apr ✔, openssl ✔\r\nOptional: postgresql ✔, mysql ✔, freetds ✔, unixodbc ✔, sqlite ✔, homebrew/dupes/openldap ✔\r\n==> Options\r\n--universal\r\n\tBuild a universal binary\r\n--with-freetds\r\n\tBuild with freetds support\r\n--with-mysql\r\n\tBuild with mysql support\r\n--with-openldap\r\n\tBuild with openldap support\r\n--with-postgresql\r\n\tBuild with postgresql support\r\n--with-sqlite\r\n\tBuild with sqlite support\r\n--with-unixodbc\r\n\tBuild with unixodbc support\r\n==> Caveats\r\nThis formula is keg-only, which means it was not symlinked into /usr/local.\r\n\r\nApple's CLT package contains apr.\r\n```\r\n\r\nShould I `brew reinstall apr-util`?  Also, `brew info php56` returns the following information:  \r\n\r\n```\r\nhomebrew/php/php56: stable 5.6.25 (bottled), HEAD\r\nPHP Version 5.6\r\nhttps://php.net\r\nConflicts with: php53, php54, php55, php70, php71\r\n/usr/local/Cellar/php56/5.6.24 (490 files, 73.4M) *\r\n  Built from source on 2016-07-26 at 21:13:55 with: --with-debug --with-enchant --with-gmp --with-homebrew-apxs --with-homebrew-curl --with-homebrew-libxml2 --with-homebrew-libxslt --with-imap --with-mssql --with-pear --with-phpdbg --with-postgresql --with-thread-safety\r\nFrom: https://github.com/Homebrew/homebrew-php/blob/master/Formula/php56.rb\r\n==> Dependencies\r\nRequired: freetype ✔, gettext ✔, icu4c ✔, jpeg ✔, libpng ✔, libxml2 ✔, unixodbc ✔, readline ✔, openssl ✔\r\nOptional: enchant ✔, gmp ✔\r\n==> Options\r\n--with-cgi\r\n\tEnable building of the CGI executable (implies --without-fpm)\r\n--with-debug\r\n\tCompile with debugging symbols\r\n--with-enchant\r\n\tBuild with enchant support\r\n--with-gmp\r\n\tBuild with gmp support\r\n--with-homebrew-apxs\r\n\tBuild against apxs in Homebrew prefix\r\n--with-homebrew-curl\r\n\tInclude Curl support via Homebrew\r\n--with-homebrew-libressl\r\n\tInclude LibreSSL instead of OpenSSL via Homebrew\r\n--with-homebrew-libxml2\r\n\tInclude Libxml2 support via Homebrew\r\n--with-homebrew-libxslt\r\n\tInclude LibXSLT support via Homebrew\r\n--with-imap\r\n\tInclude IMAP extension\r\n--with-libmysql\r\n\tInclude (old-style) libmysql support instead of mysqlnd\r\n--with-mssql\r\n\tInclude MSSQL-DB support\r\n--with-pdo-oci\r\n\tInclude Oracle databases (requries ORACLE_HOME be set)\r\n--with-pear\r\n\tBuild with PEAR\r\n--with-phpdbg\r\n\tEnable building of the phpdbg SAPI executable (PHP 5.4 and above)\r\n--with-postgresql\r\n\tBuild with postgresql support\r\n--with-thread-safety\r\n\tBuild with thread safety\r\n--without-apache\r\n\tDisable building of shared Apache 2.0 Handler module\r\n--without-bz2\r\n\tBuild without bz2 support\r\n--without-fpm\r\n\tDisable building of the fpm SAPI executable\r\n--without-ldap\r\n\tBuild without LDAP support\r\n--without-legacy-mysql\r\n\tDo not include the deprecated mysql_ functions\r\n--without-mysql\r\n\tRemove MySQL/MariaDB support\r\n--without-pcntl\r\n\tBuild without Process Control support\r\n--without-unixodbc\r\n\tBuild without unixODBC support\r\n--HEAD\r\n\tInstall HEAD version\r\n==> Caveats\r\nTo enable PHP in Apache add the following to httpd.conf and restart Apache:\r\n    LoadModule php5_module    /usr/local/opt/php56/libexec/apache2/libphp5.so\r\n\r\nThe php.ini file can be found in:\r\n    /usr/local/etc/php/5.6/php.ini\r\n\r\n✩✩✩✩ PEAR ✩✩✩✩\r\n\r\nIf PEAR complains about permissions, 'fix' the default PEAR permissions and config:\r\n    chmod -R ug+w /usr/local/Cellar/php56/5.6.25_1/lib/php\r\n    pear config-set php_ini /usr/local/etc/php/5.6/php.ini system\r\n\r\n✩✩✩✩ Extensions ✩✩✩✩\r\n\r\nIf you are having issues with custom extension compiling, ensure that\r\nyou are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:\r\n\r\n      PATH=\"/usr/local/bin:$PATH\"\r\n\r\nPHP56 Extensions will always be compiled against this PHP. Please install them\r\nusing --without-homebrew-php to enable compiling against system PHP.\r\n\r\n✩✩✩✩ PHP CLI ✩✩✩✩\r\n\r\nIf you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc,\r\n~/.zshrc, ~/.profile or your shell's equivalent configuration file:\r\n\r\n      export PATH=\"$(brew --prefix homebrew/php/php56)/bin:$PATH\"\r\n\r\nGMP has moved to its own formula, please install it by running: brew install php56-gmp\r\n\r\n✩✩✩✩ FPM ✩✩✩✩\r\n\r\nTo launch php-fpm on startup:\r\n    mkdir -p ~/Library/LaunchAgents\r\n    cp /usr/local/opt/php56/homebrew.mxcl.php56.plist ~/Library/LaunchAgents/\r\n    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist\r\n\r\nThe control script is located at /usr/local/opt/php56/sbin/php56-fpm\r\n\r\nOS X 10.8 and newer come with php-fpm pre-installed, to ensure you are using the brew version you need to make sure /usr/local/sbin is before /usr/sbin in your PATH:\r\n\r\n  PATH=\"/usr/local/sbin:$PATH\"\r\n\r\nYou may also need to edit the plist to use the correct \"UserName\".\r\n\r\nPlease note that the plist was called 'homebrew-php.josegonzalez.php56.plist' in old versions\r\nof this formula.\r\n\r\nTo have launchd start homebrew/php/php56 now and restart at login:\r\n  brew services start homebrew/php/php56\r\n```\r\n\r\n`brew info perl` returns the following information:  \r\n\r\n```\r\nperl: stable 5.24.0 (bottled), HEAD\r\nHighly capable, feature-rich programming language\r\nhttps://www.perl.org/\r\n/usr/local/Cellar/perl/5.24.0_1 (2,295 files, 55.2M) *\r\n  Built from source on 2016-06-04 at 20:34:25 with: --with-dtrace\r\nFrom: https://github.com/Homebrew/homebrew-core/blob/master/Formula/perl.rb\r\n==> Dependencies\r\nBuild: xz ✔\r\n==> Options\r\n--with-dtrace\r\n\tBuild with DTrace probes\r\n--without-test\r\n\tSkip running the build test suite\r\n--HEAD\r\n\tInstall HEAD version\r\n==> Caveats\r\nBy default non-brewed cpan modules are installed to the Cellar. If you wish\r\nfor your modules to persist across updates we recommend using `local::lib`.\r\n\r\nYou can set that up like this:\r\n  PERL_MM_OPT=\"INSTALL_BASE=$HOME/perl5\" cpan local::lib\r\n  echo 'eval \"$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)\"' >> ~/.bash_profile\r\n```\r\n\r\n`brew info httpd24` returns the following information:  \r\n\r\n```\r\nhomebrew/apache/httpd24: stable 2.4.18 (bottled)\r\nHTTP server\r\nhttps://httpd.apache.org/\r\nConflicts with: homebrew/apache/httpd22\r\n/usr/local/Cellar/httpd24/2.4.18 (210 files, 4.3M) *\r\n  Built from source on 2016-02-23 at 22:25:43 with: --with-http2 --with-mpm-event\r\nFrom: https://github.com/Homebrew/homebrew-apache/blob/master/httpd24.rb\r\n==> Dependencies\r\nRequired: openssl ✔, pcre ✔, homebrew/dupes/zlib ✔, apr-util ✔\r\n==> Options\r\n--with-http2\r\n\tBuild and enable the HTTP/2 shared Module\r\n--with-ldap\r\n\tInclude support for LDAP\r\n--with-mpm-event\r\n\tUse the Event Multi-Processing Module instead of Prefork\r\n--with-mpm-worker\r\n\tUse the Worker Multi-Processing Module instead of Prefork\r\n--with-privileged-ports\r\n\tUse the default ports 80 and 443 (which require root privileges), instead of 8080 and 8443\r\n==> Caveats\r\nTo have launchd start homebrew/apache/httpd24 now and restart at login:\r\n  brew services start homebrew/apache/httpd24\r\nOr, if you don't want/need a background service you can just run:\r\n  apachectl start\r\n```\r\n\r\n## Context and Logs\r\n\r\nParameter | Value\r\n--------- | ------------------\r\n**OS X Version:**       | OS X 10.11.6\r\n**Homebrew Version:**   | Homebrew 0.9.9 (git revision cb70; last commit 2016-08-23)\r\n**PHP Version in use:** | PHP 5.6.24\r\n**Xcode Version:**      | Xcode v7.3.1 (Build 7D1014)\r\n\r\n**Output of gcc -v:**\r\n```\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nApple LLVM version 7.3.0 (clang-703.0.31)\r\nTarget: x86_64-apple-darwin15.6.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\n**Output of php -v:**\r\n```\r\nPHP 5.6.24 (cli) (built: Jul 26 2016 21:12:20) (DEBUG)\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies\r\n```\r\n\r\n**Build logs:**  https://github.com/RandomDSdevel/Homebrew-Installation-Logs/tree/master/PHP"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/comments/242145944","html_url":"https://github.com/Homebrew/homebrew-php/issues/3528#issuecomment-242145944","issue_url":"https://api.github.com/repos/Homebrew/homebrew-php/issues/3528","id":242145944,"user":{"login":"RandomDSdevel","id":7728575,"avatar_url":"https://avatars.githubusercontent.com/u/7728575?v=3","gravatar_id":"","url":"https://api.github.com/users/RandomDSdevel","html_url":"https://github.com/RandomDSdevel","followers_url":"https://api.github.com/users/RandomDSdevel/followers","following_url":"https://api.github.com/users/RandomDSdevel/following{/other_user}","gists_url":"https://api.github.com/users/RandomDSdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomDSdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomDSdevel/subscriptions","organizations_url":"https://api.github.com/users/RandomDSdevel/orgs","repos_url":"https://api.github.com/users/RandomDSdevel/repos","events_url":"https://api.github.com/users/RandomDSdevel/events{/privacy}","received_events_url":"https://api.github.com/users/RandomDSdevel/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T17:30:30Z","updated_at":"2016-08-24T17:30:30Z","body":"@javian:  Eureka, what a miracle:  it worked!  Blast these cross-tap dependencies, though…"}}
{"actor":{"display_login":"RandomDSdevel"}}