brewでhttpdをインストール
( Mac )なぜなんだろうかbrewでhttpdがすんなりはいってくれない。 Formula (パッケージ(のようなもの)を定義するRubyファイル) が別途作成しなければいけないらしいよ。
このアプリをインストールしてみることにします。
brew create http://ftp.jaist.ac.jp/pub/apache/httpd/httpd-2.2.21.tar.gz
自動的にエディタが起動されて編集しろと促されます。
require 'formula'
class Httpd < Formula
url 'http://ftp.jaist.ac.jp/pub/apache/httpd/httpd-2.2.21.tar.gz'
homepage ''
md5 'b24ca6db942a4f8e57c357e5e3058d31'
# depends_on 'cmake'
def install
#system "./configure", "--disable-debug", "--disable-dependency-tracking",
# "--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "./configure", *args
system "make"
system "make install"
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test httpd`. Remove this comment before submitting
# your pull request!
system "false"
end
def args
return ["--prefix=#{prefix}","--disable-debug","--disable-dependency-tracking","--enable-so","--enable-rewrite","--mandir=#{man}",]
end
end
インストール開始します。
brew install httpd
完成です。
