phpenvでphpのビルド( phpenv install 7.x.x)をしている最中に、エラーでコケた箇所のメモです

エラー: configure: error: C++ preprocessor "/lib/cpp" fails sanity check

1
$ sudo apt install -y g++

エラー: configure: error: libxml2 not found. Please check your libxml2 installation.

1
$ sudo apt install -y libxml2 libxml2-dev

エラー: configure: error: Cannot find OpenSSL's libraries

1
$ sudo apt install -y libssl-dev pkg-config

エラー: configure: error: cannot find libz

1
$ sudo apt install -y zlib1g-dev

エラー: configure: error: Please reinstall the BZip2 distribution

1
$ sudo apt install -y libbz2-dev

エラー: configure: error: jpeglib.h not found.

1
$ sudo apt install -y libjpeg-dev

エラー: configure: error: png.h not found.

1
$ sudo apt install -y libpng-dev

エラー: configure: error: Please reinstall readline - I cannot find readline.h

1
$ sudo apt install -y libreadline-dev

エラー: configure: error: Cannot find libtidy

1
$ sudo apt install -y libtidy-dev

エラー: configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

1
2
3
4
$ sudo apt install -y libxslt1.1
libxslt1.1 はすでに最新バージョン (1.1.29-2.1) です。

$ sudo apt install -y libxslt-dev

エラー: configure: error: cURL version 7.10.5 or later is required to compile php with cURL support

1
$ sudo apt install -y libcurl4-openssl-dev

エラー: configure: error: mcrypt.h not found. Please reinstall libmcrypt.

1
$ sudo apt install -y libmcrypt-dev

エラー: No package 'libzip' found

1
$ sudo apt install -y libzip-dev

エラー: No package 'oniguruma' found

1
$ sudo apt install -y libonig-dev