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

phpbrewでCatalinaにPHP v7.0.xをインストールする

PHP 7.0系でしか動かないシステムをmacOS Catalinaで動かすためにphpbrewでv7.0をインストールしたかった

brew install bzip2 zlib openssl@1.1
phpbrew install 7.0 +default+zlib=$(brew --prefix zlib)+openssl=$(brew --prefix openssl@1.1)

macOSの openssl version のデフォルトがLibreSSLになってるので、7.0のコンパイルエラーが出る。openssl@1.1 を指定する。

❯ phpbrew list 
* (system)
  php-7.0.17 
❯ phpbrew use php-7.0.17
❯ php -v                                                                                                                             PHP 7.0.17 (cli) (built: Jan 20 2020 19:12:39) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

php-7.0.17 が使えることを確認

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
ユーザーは見つかりませんでした