[MacPorts] #40396: apache2 fails to build when configure can't find zlib
#40396: apache2 fails to build when configure can't find zlib -----------------------------------------+-------------------------------- Reporter: cmc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: apache zlib httpd configure | Port: apache2 -----------------------------------------+-------------------------------- During the configure process, configure dies with {{{ checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/work/httpd-2.2.25" && ./configure --prefix=/opt/local/apache2 --with- apr=/opt/local/bin/apr-1-config --with-apr- util=/opt/local/bin/apu-1-config --libdir=/opt/local/lib --with- expat=/opt/local --with-pcre=/opt/local --mandir=/opt/local/share/man --enable-mods-shared=all --enable-authn-alias=shared --enable-ssl --with- ssl=/opt/local --enable-cache --enable-disk_cache --enable-file_cache --enable-mem_cache --enable-deflate --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-ftp --with-mpm=prefork Exit code: 1 Error: Failed to configure apache2, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/work/httpd-2.2.25/config.log Error: org.macports.configure for port apache2 returned: configure failure: command execution failed Warning: targets not executed for apache2: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install Please see the log file for port apache2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_apache2/apache2/main.log }}} The configure script seems to only be looking in /usr and /usr/local for zlib. Adding `–with-z=/opt/local` allows configure to complete. -- Ticket URL: <https://trac.macports.org/ticket/40396> MacPorts <http://www.macports.org/> Ports system for OS X
#40396: apache2 fails to build when configure can't find zlib ----------------------+-------------------------- Reporter: cmc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: apache2 | ----------------------+-------------------------- Changes (by ryandesign@…): * keywords: apache zlib httpd configure => * owner: macports-tickets@… => ryandesign@… Comment: What version of OS X and Xcode and clang are you running? May I see the main.log and config.log file? You're the first person to report this problem, as far as I'm aware. -- Ticket URL: <https://trac.macports.org/ticket/40396#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40396: apache2 fails to build when configure can't find zlib ----------------------+-------------------------- Reporter: cmc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: apache2 | ----------------------+-------------------------- Comment (by cornelius.howl@…): The z lib path should be {$prefix} i think. https://trac.macports.org/attachment/ticket/40484/apache2-darwin13.diff -- Ticket URL: <https://trac.macports.org/ticket/40396#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40396: apache2 fails to build when configure can't find zlib ----------------------+-------------------------- Reporter: cmc@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: apache2 | ----------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r111146 -- Ticket URL: <https://trac.macports.org/ticket/40396#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts