Skip to content

🌐 Apache formulae for the Homebrew package manager

License

Notifications You must be signed in to change notification settings

jmswindle/homebrew-apache

This branch is 1 commit ahead of qdonnellan/homebrew-apache:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f4572e · Mar 26, 2019
Apr 8, 2017
Jan 1, 2016
Oct 30, 2016
Mar 26, 2017
Mar 26, 2019
Jun 28, 2017
Nov 25, 2015
Mar 26, 2016
Nov 25, 2015
Nov 25, 2015
Sep 4, 2016
Aug 31, 2016
Sep 19, 2016
Sep 15, 2016
Nov 25, 2015

Repository files navigation

Homebrew Apache

How do I install these formulae?

brew install homebrew/apache/<formula>

Or brew tap homebrew/apache and then brew install <formula>.

Or install via URL (which will not receive updates):

brew install https://raw.githubusercontent.com/Homebrew/homebrew-apache/master/<formula>.rb

Documentation

brew help, man brew or check Homebrew's documentation.

Configuration

After installing httpd22 or httpd24, the configuration files will be in $(brew --prefix)/etc/apache2/2.2 and $(brew --prefix)/etc/apache2/2.4, respectively.

Troubleshooting

A common problem with OS X 10.8 Mountain Lion and higher is an error about a missing OSX10.8.xctoolchain, OSX10.9.xctoolchain, or OSX10.10.xctoolchain directory:

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc: No such file or directory

This is because the OS X tool apr-1-config returns a path for a compiler that does not exist, even with Xcode installed:

$ apr-1-config --cc
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
$ apr-1-config --cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -E
$ which apr-1-config
/usr/bin/apr-1-config

The simplest solution is to go to the /Applications/Xcode.app/Contents/Developer/Toolchains/ directory and create a symlink named OSX10.8.xctoolchain, OSX10.9.xctoolchain, or OSX10.10.xctoolchain to XcodeDefault.xctoolchain. This requires you to have Xcode installed. If you only have the Xcode Command Line tools or OSX-GCC-Installer, a simple symlink will not work.

This single-line command will set up the symlink if you have Xcode installed, and if you don't, it will create directories leading up to the toolchain and a symlink to /usr/bin that will satisfy the requirements needed for apr-1-config to find the compiler it needs:

sw_vers -productVersion | grep -E '^10\.([89]|10)' >/dev/null && bash -c "[ -d /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain ] && sudo -u $(ls -ld /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain | awk '{print $3}') bash -c 'ln -vs XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX$(sw_vers -productVersion).xctoolchain' || sudo bash -c 'mkdir -vp /Applications/Xcode.app/Contents/Developer/Toolchains/OSX$(sw_vers -productVersion).xctoolchain/usr && for i in bin include lib libexec share; do ln -s /usr/${i} /Applications/Xcode.app/Contents/Developer/Toolchains/OSX$(sw_vers -productVersion).xctoolchain/usr/${i}; done'"

About

🌐 Apache formulae for the Homebrew package manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%