技術メモのかけら

内容はもとより調べたことすら忘れてしまうので個人的な技術メモを残しているブログです。Qiitaの記事にするほどでもない細かいネタを投稿します。

Macにapacheをインストール

素のbrewではインストールできないので、tapというのことをする必要があるみたいなので、調べたやり方でやってみる。

$ brew tap adamv/alt
Cloning into /usr/local/Library/Taps/adamv-alt...
remote: Counting objects: 1088, done.
remote: Compressing objects: 100% (513/513), done.
remote: Total 1088 (delta 655), reused 961 (delta 562)
Receiving objects: 100% (1088/1088), 179.22 KiB | 96 KiB/s, done.
Resolving deltas: 100% (655/655), done.
Tapped 32 formula

httpdが入ってない。

$ brew search httpd
libmicrohttpd	lighttpd
homebrew/dupes/httpd

別のやり方で再実行。

$ brew tap Homebrew/dupes
Cloning into /usr/local/Library/Taps/homebrew-dupes...
remote: Counting objects: 486, done.
remote: Compressing objects: 100% (211/211), done.
remote: Total 486 (delta 297), reused 460 (delta 275)
Receiving objects: 100% (486/486), 72.44 KiB | 61 KiB/s, done.
Resolving deltas: 100% (297/297), done.
Tapped 36 formula

今度はhttpdが入った。

sanda-no-Mac-mini:~ eiichi$ brew search httpd
httpd		libmicrohttpd	lighttpd

インストール。

$ brew install httpd
Warning: You have Xcode 4.2.1, which is outdated.
Please install Xcode 4.3.
==> Downloading http://www.apache.org/dist/httpd/httpd-2.2.22.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/httpd/2.2.22 --mandir=/usr/local/Cellar/httpd/2.2.22/share/man --enable-layout=GNU --enable-mods-shared=all --with-ssl
==> make
==> make install
Warning: Non-executables were installed to "sbin".
Installing non-executables to "sbin" is bad practice.
The offending files are:
/usr/local/Cellar/httpd/2.2.22/sbin/envvars
/usr/local/Cellar/httpd/2.2.22/sbin/envvars-std
Warning: Non-libraries were installed to "lib".
Installing non-libraries to "lib" is bad practice.
The offending files are:
/usr/local/Cellar/httpd/2.2.22/lib/apr.exp
/usr/local/Cellar/httpd/2.2.22/lib/aprutil.exp
Warning: /usr/local/sbin is not in your PATH
You can amend this by altering your ~/.bashrc file
==> Summary
/usr/local/Cellar/httpd/2.2.22: 1337 files, 22M, built in 2.4 minutes