2016-12-14 12 views
0

경우, APC을 설치하려고했습니다. 내가 정상적으로 실행중인 configure 파일을 실행,하지만 난 make하려고 할 때 나는 다음과 같은 오류를 얻을 : APC가경고 : PHP 시작 : 동적 라이브러리 apc.so를로드 할 수 없습니다

를 설치 한 경우 내가이 명령을 sh -c "echo 'extension=apc.so' >> /opt/lampp/etc/php.ini"

검사를 실행하는 것이

/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 

/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 

어떻게 수정합니까?

+0

빌드 오류가 발생했습니다. 왜 모듈을로드하려고 했습니까? 또한 설치가 필요할 수도 있습니다. 코드에 오류가 있으며 빌드되지 않습니다. –

+0

@iharob 예, 어떻게 수정합니까? –

답변

1

PHP 버전으로 IS_CONSTANT_INDEXIS_CONSTANT_ARRAY C 상수가 no longer available 인 확장 프로그램을 컴파일하려고합니다. 그 이후 APC 확장 had not been updated. last commit2012 년 9 월 12 일에 있었기 때문에 확장 프로그램은 포기 된 것으로 보입니다.

다른 캐싱 확장을 사용하거나 APC 확장 내부를 업그레이드해야합니다. 버전 5.5.0부터 PHP에 번들로 제공되는 OPcache을 사용하고 싶습니다.