LoginSignup
13
13

More than 5 years have passed since last update.

httpdがhomebrew-dupesからhomebrew-apacheに移動になったよー

Posted at

タイトル通りですが、httpdはhomebrew-dupesからhomebrew-apacheに独立したようです。
https://github.com/Homebrew/homebrew-dupes/commit/c7ea28d3cdc517def4b19a75e79c2645f59d84ce
https://github.com/Homebrew/homebrew-apache

移行手順

1.homebrew-apacheを追加

brew tap homebrew/apache

2.apacheのインストール

apache2.2系の場合

brew install httpd22

apache2.4系の場合

brew install httpd24

3.confのマージ

homebrew-apacheになってからconfなどのパスが変更されました。

apache2.2系の場合

/usr/local/etc/apache2/2.2/配下に

apache2.4系の場合

/usr/local/etc/apache2/2.4/配下に

それぞれ移動になりました。
これまで使っていたものとマージしてあげると良いかと思います。

トラブルシューティング

checking for zlib location... not found

原因は分からず。。
以下のようにすれば解消はされました。

brew link zlib --force
brew install httpd22 #or httpd24
brew unlink zlib

最後にunlinkしておかないとbrew docterで警告が出ます。

13
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
13