LoginSignup
0
0

More than 5 years have passed since last update.

CentOS 6.6にlinuxbrewでnginxをインストールしようとして立ちはだかった壁

Posted at

まずは手始めに
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を繰り返したとき、僕は目を疑った。インストールが完了していたのだ。

0
0
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
0
0