purazumakoiの[はてなブログ]

技術メモから最近はライフログも増えてきてます。

suPHP環境にphp7.0.2を入れる

こんな感じの方法でPHPを複数バージョンで利用してるのですが 64bitCentOS6.2にsuPHPで複数バージョンのPHPを入れた際ハマったこと | ハサミできって貼ってみた

ハマったところ

その1

WARNING: unrecognized options: --with-mysql

PHP7ではmysqlコマンドが削除になったからですかね? コンフィグオプションから「--with-mysql」の部分を削除で対応。

その2

こんな感じのエラー

/usr/local/src/php-7.0.0/ext/pcre/php_pcre.c: In function 'zm_info_pcre':
/usr/local/src/php-7.0.0/ext/pcre/php_pcre.c:153: error: 'PCRE_CONFIG_JIT' undeclared (first use in this function)
/usr/local/src/php-7.0.0/ext/pcre/php_pcre.c:153: error: (Each undeclared identifier is reported only once
/usr/local/src/php-7.0.0/ext/pcre/php_pcre.c:153: error: for each function it appears in.)
make: *** [ext/pcre/php_pcre.lo] Error 1

–with-pcre-regex=/usr のコンフィグオプションを削除