![](/img/trans.png)
[英]Getting Error in Yii2 as PHP Startup: Unable to load dynamic library apc.so
[英]Warning: PHP Startup: Unable to load dynamic library apc.so
我的情況下,我嘗試安裝APC
。 我運行configure
文件,它運行正常,但是當我嘗試make
之時,出現以下錯誤:
/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"
檢查是否安裝了APC
/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
我如何解決它 ?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.