Skip to content

Instantly share code, notes, and snippets.

@tknzk
Created October 19, 2014 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tknzk/386bc90923b3bea56827 to your computer and use it in GitHub Desktop.
Save tknzk/386bc90923b3bea56827 to your computer and use it in GitHub Desktop.
-> % brew install httpd
Error: No available formula for httpd
Searching taps...
homebrew/apache/httpd22 homebrew/apache/httpd24
tknzk@tknzks-mba [06:41:11] [~]
-> % brew tap homebrew/apache
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-apache'...
remote: Counting objects: 461, done.
remote: Total 461 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (461/461), 97.11 KiB | 106.00 KiB/s, done.
Resolving deltas: 100% (281/281), done.
Checking connectivity... done.
Tapped 12 formulae
tknzk@tknzks-mba [06:41:55] [~]
-> % brew searh httpd
Error: Unknown command: searh
tknzk@tknzks-mba [06:42:01] [~]
-> % brew search httpd
darkhttpd httpd22 httpd24 libmicrohttpd lighttpd mighttpd2
tknzk@tknzks-mba [06:42:07] [~]
-> % brew install httpd22
==> Installing dependencies for httpd22: apr, apr-util
==> Installing httpd22 dependency: apr
==> Downloading https://bitbucket.org/alanthing/homebrew-apache/downloads/apr-1.5.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring apr-1.5.1.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/apr/lib
CPPFLAGS: -I/usr/local/opt/apr/include
==> Summary
🍺 /usr/local/Cellar/apr/1.5.1: 53 files, 1.3M
==> Installing httpd22 dependency: apr-util
==> Downloading https://bitbucket.org/alanthing/homebrew-apache/downloads/apr-util-1.5.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring apr-util-1.5.4.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/apr-util/lib
CPPFLAGS: -I/usr/local/opt/apr-util/include
==> Summary
🍺 /usr/local/Cellar/apr-util/1.5.4: 45 files, 808K
==> Installing httpd22
==> Downloading https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.bz2
######################################################################## 100.0%
==> ./configure --enable-layout=Homebrew --enable-mods-shared=all --with-mpm=prefork --enable-unique-id --enable-ssl --enable-dav --enable-cache --enable-proxy --enable-logio --enable-deflate --enable
==> make
==> make install
==> Caveats
To have launchd start httpd22 at login:
ln -sfv /usr/local/opt/httpd22/*.plist ~/Library/LaunchAgents
Then to load httpd22 now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.httpd22.plist
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/apache2/ap_compat.h
Target /usr/local/include/apache2/ap_compat.h
is a symlink belonging to httpd. You can unlink it:
brew unlink httpd
To force the link and overwrite all conflicting files:
brew link --overwrite httpd22
To list all files that would be deleted:
brew link --overwrite --dry-run httpd22
Possible conflicting files are:
/usr/local/include/apache2/ap_compat.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_compat.h
/usr/local/include/apache2/ap_config.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_config.h
/usr/local/include/apache2/ap_config_auto.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_config_auto.h
/usr/local/include/apache2/ap_config_layout.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_config_layout.h
/usr/local/include/apache2/ap_listen.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_listen.h
/usr/local/include/apache2/ap_mmn.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_mmn.h
/usr/local/include/apache2/ap_mpm.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_mpm.h
/usr/local/include/apache2/ap_provider.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_provider.h
/usr/local/include/apache2/ap_regex.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_regex.h
/usr/local/include/apache2/ap_regkey.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_regkey.h
/usr/local/include/apache2/ap_release.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/ap_release.h
/usr/local/include/apache2/http_config.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_config.h
/usr/local/include/apache2/http_connection.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_connection.h
/usr/local/include/apache2/http_core.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_core.h
/usr/local/include/apache2/http_log.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_log.h
/usr/local/include/apache2/http_main.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_main.h
/usr/local/include/apache2/http_protocol.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_protocol.h
/usr/local/include/apache2/http_request.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_request.h
/usr/local/include/apache2/http_vhost.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/http_vhost.h
/usr/local/include/apache2/httpd.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/httpd.h
/usr/local/include/apache2/mod_auth.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_auth.h
/usr/local/include/apache2/mod_cgi.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_cgi.h
/usr/local/include/apache2/mod_core.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_core.h
/usr/local/include/apache2/mod_dav.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_dav.h
/usr/local/include/apache2/mod_dbd.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_dbd.h
/usr/local/include/apache2/mod_include.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_include.h
/usr/local/include/apache2/mod_log_config.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_log_config.h
/usr/local/include/apache2/mod_proxy.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_proxy.h
/usr/local/include/apache2/mod_rewrite.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_rewrite.h
/usr/local/include/apache2/mod_ssl.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_ssl.h
/usr/local/include/apache2/mod_status.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mod_status.h
/usr/local/include/apache2/mpm.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mpm.h
/usr/local/include/apache2/mpm_common.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mpm_common.h
/usr/local/include/apache2/mpm_default.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/mpm_default.h
/usr/local/include/apache2/os.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/os.h
/usr/local/include/apache2/scoreboard.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/scoreboard.h
/usr/local/include/apache2/unixd.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/unixd.h
/usr/local/include/apache2/util_cfgtree.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_cfgtree.h
/usr/local/include/apache2/util_charset.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_charset.h
/usr/local/include/apache2/util_ebcdic.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_ebcdic.h
/usr/local/include/apache2/util_filter.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_filter.h
/usr/local/include/apache2/util_ldap.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_ldap.h
/usr/local/include/apache2/util_md5.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_md5.h
/usr/local/include/apache2/util_script.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_script.h
/usr/local/include/apache2/util_time.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_time.h
/usr/local/include/apache2/util_xml.h -> /usr/local/Cellar/httpd/2.2.23/include/apache2/util_xml.h
/usr/local/share/man/man1/dbmmanage.1 -> /usr/local/Cellar/httpd/2.2.23/share/man/man1/dbmmanage.1
/usr/local/share/man/man1/htdbm.1 -> /usr/local/Cellar/httpd/2.2.23/share/man/man1/htdbm.1
/usr/local/share/man/man1/htdigest.1 -> /usr/local/Cellar/httpd/2.2.23/share/man/man1/htdigest.1
/usr/local/share/man/man1/htpasswd.1 -> /usr/local/Cellar/httpd/2.2.23/share/man/man1/htpasswd.1
/usr/local/share/man/man1/httxt2dbm.1 -> /usr/local/Cellar/httpd/2.2.23/share/man/man1/httxt2dbm.1
/usr/local/share/man/man8/ab.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/ab.8
/usr/local/share/man/man8/apachectl.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/apachectl.8
/usr/local/share/man/man8/apxs.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/apxs.8
/usr/local/share/man/man8/htcacheclean.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/htcacheclean.8
/usr/local/share/man/man8/httpd.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/httpd.8
/usr/local/share/man/man8/logresolve.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/logresolve.8
/usr/local/share/man/man8/rotatelogs.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/rotatelogs.8
/usr/local/share/man/man8/suexec.8 -> /usr/local/Cellar/httpd/2.2.23/share/man/man8/suexec.8
==> Summary
🍺 /usr/local/Cellar/httpd22/2.2.29: 153 files, 3.1M, built in 3.3 minutes
tknzk@tknzks-mba [06:45:52] [~]
-> % apachectl -v
Server version: Apache/2.2.23 (Unix)
Server built: Jun 23 2013 03:52:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment