Help us understand the problem. What is going on with this article?

macOS Sierraでconfigure: error: Cannot find libzの対処法

注: Mojaveの場合は下記記事をご覧ください。

https://polidog.jp/2018/11/28/mojave_phpenv/

ここからは Sierra の場合

phpenvでphp7.2をインストールしようとしたらエラーが出ました。

 phpenv install 7.2.0beta2
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 7.2.0beta2 into /Users/DQNEO/.phpenv/versions/7.2.0beta2
[Skipping]: Already downloaded and extracted https://downloads.php.net/~pollita/php-7.2.0beta2.tar.bz2


-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
configure: error: Cannot find libz
-----------------------------------------

The full Log is available at '/tmp/php-build.7.2.0beta2.20170808200356.log'.
[Warn]: Aborting build.

対処法

$ xcode-select --install
DQNEO
PHP/Go/Perl/C/Docker/Linux/Git/AWS
http://dqn.sakusakutto.jp
mercari
フリマアプリ「メルカリ」を、グローバルで開発しています。
https://tech.mercari.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした