OpenBSD 3.9にApacheとPHPをインストールする準備
ローカルにApacheとPHPのテスト環境を作るメモ。
OpenBSD 3.9にApacheとPHPを入れるが、その前に必要なプログラムをインストールする。
必要なプログラムは以下の通り。
インストール
以下の通りにインストールする。
★iconv
$ ftp http://www2d.biglobe.ne.jp/~msyk/software/libiconv/libiconv-1.10-ja-1.patch.gz $ ftp ftp://ftp.riken.go.jp/GNU/pub/gnu/libiconv/libiconv-1.10.tar.gz $ tar -xzvf libiconv-1.10.tar.gz $ cd libiconv-1.10 $ gzip -dc ../libiconv-1.10-ja-1.patch.gz | patch -p1 $ ./configure --enable-static \ --enable-extra-encodings $ make $ su # make instal
★GNU make
$ ftp ftp://ftp.riken.go.jp/GNU/gnu/make/make-3.81.tar.gz $ tar xzvf make-3.81.tar.gz $ cd make-3.81 $ ./configure --program-prefix=g $ su # make install # mv /usr/bin/make /usr/bin/make.old # ln -s /usr/local/bin/gmake /usr/bin/make
★expat
$ ftp http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.0.tar.gz $ tar xzvf expat-2.0.0.tar.gz $ cd expat-2.0.0 $ ./configure && make $ su # make install
★GNU m4
$ ftp ftp://ftp.riken.go.jp/GNU/gnu/m4/m4-1.4.8.tar.gz $ tar xzvf m4-1.4.8.tar.gz $ cd m4-1.4.8 $ ./configure --program-prefix=g $ make $ su # make install # mv /usr/bin/m4 /usr/bin/m4.old # ln -s /usr/local/bin/gm4 /usr/bin/m4
★bison
$ ftp ftp://ftp.riken.go.jp/GNU/gnu/bison/bison-2.3.tar.gz $ tar xzvf bison-2.3.tar.gz $ cd bison-2.3 $ ./configure && make $ su # make install