まずは手始めに
brew install nginx
shell
[vagrant@localhost ~]$ brew install nginx
==> Installing dependencies for nginx: pcre, makedepend, openssl
==> Installing nginx dependency: pcre
==> Downloading https://downloads.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.tar.bz2
Already downloaded: /home/vagrant/.cache/Homebrew/pcre-8.36.tar.bz2
==> Patching
==> ./configure --prefix=/home/vagrant/.linuxbrew/Cellar/pcre/8.36 --enable-utf8 --enable-pcre8 --enab
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found
READ THIS: https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
やれやれ。** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found
か。
僕はyum -y install bzip2-devel
をした。
shell
[vagrant@localhost ~]$ brew install nginx
==> Installing dependencies for nginx: pcre, makedepend, openssl
==> Installing nginx dependency: pcre
==> Downloading https://downloads.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.tar.bz2
Already downloaded: /home/vagrant/.cache/Homebrew/pcre-8.36.tar.bz2
==> Patching
==> ./configure --prefix=/home/vagrant/.linuxbrew/Cellar/pcre/8.36 --enable-utf8 --enable-pcre8 --enab
==> make
==> make test
==> make install
/home/vagrant/.linuxbrew/Cellar/pcre/8.36: 146 files, 5.6M, built in 61 seconds
==> Installing nginx dependency: makedepend
Error: /home/vagrant/.linuxbrew/opt/pkg-config not present or broken
Please reinstall pkg-config. Sorry :(
やれやれ。Error: /home/vagrant/.linuxbrew/opt/pkg-config not present or broken
か。
僕は brew install pkg-config
をした。
次にbrew install nginx
を繰り返したとき、僕は目を疑った。インストールが完了していたのだ。