Opened 11 years ago
Closed 11 years ago
#40396 closed defect (fixed)
apache2 fails to build when configure can't find zlib
Reported by: | cmconnelly (Claire Connelly) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | ||
Port: | apache2 |
Description
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.
Attachments (1)
Change History (4)
Changed 11 years ago by cmconnelly (Claire Connelly)
Attachment: | apache2-patch added |
---|
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | apache zlib httpd configure removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.