▼タイトル
PHP7.0.33のインストールでBUILD ERROR
▼実行環境
MACOS:Catalina(10.15.7)
▼事象
phpenvでPHP7.0.33をインストールしようとすると、以下の実行ログでエラーとなります。
〜〜〜〜
| BUILD ERROR |
Here are the last 10 lines from the log:
/var/tmp/php-build/source/7.0.33/main/php_config.h:2525:5: error: declaration of 'zend_sprintf' has a different language linkage
int zend_sprintf(char *buffer, const char *format, ...);
^
/var/tmp/php-build/source/7.0.33/main/php_config.h:2525:5: note: previous declaration is here
int zend_sprintf(char *buffer, const char *format, ...);
^
13 warnings and 2 errors generated.
make: *** [ext/intl/intl_convertcpp.lo] Error 1
make: *** Waiting for unfinished jobs....
1 warning generated.
The full Log is available at '/tmp/php-build.7.0.33.20201201160210.log'.
[Warn]: Aborting build.
〜〜〜〜
心当たりの方は解決策をご教示いただけませんでしょうか。
よろしくお願いします。
何を参考にどうやってインストールしようとしているのでしょうか。
MacでしたらMAMPで良いのでは。
それに、PHP7.0はサポートが終わっています。
今から入れるなら7.4からではないでしょうか。(7.2ももう終わっているし、8も出てるし)
個人で開発しているわけではないので、サーバの構築環境に合わせるとPHP7.0のインストールが必要になります。
phpenvを使ってインストールを試みており、実施手順は以下を参考にしました。
https://fatty-rabbit.tistory.com/8
https://qiita.com/SeijiNishiwaki/items/f2595245357a83df350e
あなたの回答
tips
プレビュー