ターミナルで
which php >/usr/bin/php php --ini >Configuration File (php.ini) Path: /etc >Loaded Configuration File: (none) >Scan for additional .ini files in: (none) >Additional .ini files parsed: (none)
このように出ます。
でも、XAMPPのphp infoをみると
Configuration File (php.ini) Path ⇨ /Applications/XAMPP/xamppfiles/etc
Loaded Configuration File ⇨ //Applications/XAMPP/xamppfiles/etc/php.ini
と書いてあります。
Macの何かのPHP(標準のやつ???)とXAMPPのPHPが混同しているような気がします。
解決策を教えてください!!
【追記】apcu-bcインストール中でのエラー
・phpのバージョン7.1.14
・apcuのバージョン5.13
・apcu_bcのバージョン1.0.4
PHP Version: PHP 7.0.0 or newer
PEAR Package: PEAR 1.10 or newer
PECL Package: apcu 5.1.2 or newer
それぞれのバージョンはあっていると思うのですが、apcuが見つかりませんっていうエラーが出ます。
apcu-bcのインストール
cd /tmp git clone https://github.com/krakjoe/apcu-bc cd apcu-bc phpize ./configure --enable-apc \ comporser install make
エラーが出ます。
ちなみにXAMPPのphpinfo()にはapcuがエクステンションされているのが確認できます。
Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-apcu ~5.1 is missing from your system. Install or enable PHP's apcu extension.
回答1件
あなたの回答
tips
プレビュー