私の場合、APC
をインストールしようとしました。 私はそれが正常に動作していますが、私はmake
しようとすると、私は次のエラーを取得configure
ファイルを実行します:APCは警告:PHPスタートアップ:動的ライブラリapc.soを読み込めません
/home/ghost/APC-3.1.13/apc_cache.c: In function ‘_apc_cache_user_update’:
/home/ghost/APC-3.1.13/apc_cache.c:818:63: error: ‘IS_CONSTANT_INDEX’ undeclared (first use in this function)
switch(Z_TYPE_P((*slot)->value->data.user.val) & ~IS_CONSTANT_INDEX
^
/home/ghost/APC-3.1.13/apc_cache.c:818:63: note: each undeclared identifier is reported only once for each function it appears in
/home/ghost/APC-3.1.13/apc_cache.c:820:22: error: ‘IS_CONSTANT_ARRAY’ undeclared (first use in this function)
case IS_CONSTANT_ARRAY:
^
Makefile:186: recipe for target 'apc_cache.lo' failed
make: *** [apc_cache.lo] Error 1
その
後、私は、このコマンドにsh -c "echo 'extension=apc.so' >> /opt/lampp/etc/php.ini"
チェックを実行します
/opt/lampp/bin/php -r 'echo phpinfo()' | grep apc --color
出力:
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/apc.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
どうすれば修正できますか?
ビルドエラーがありましたが、なぜモジュールをロードしようとしましたか?また、おそらくそれをインストールする必要があります。コードにはエラーがあり、ビルドしません。 –
@iharobはい、どうすれば修正できますか? –