APC 레드햇 설치

APC 레드햇 설치

나는 redhat에 apc를 설치하려고 해서 다음과 같이 했습니다:

pecl install apc

나는 말했다에게:

Use apxs to set compile flags (if using APC with Apache)? [yes]:

그리고 나는 이것을 얻습니다 :

checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to \
regenerate PHP parsers.

그리고

checking whether apc needs to get compiler flags from apxs...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of apxs follows
/tmp/tmpJQuZdD/APC-3.0.16/configure: line 3846: apxs: command not found
configure: error: Aborting
ERROR: `/tmp/tmpJQuZdD/APC-3.0.16/configure --with-apxs' failed

무엇이 문제일까요? 감사해요

답변1

이 패키지를 잊어버렸습니다:

sudo yum install httpd-devel.i386

또는

sudo yum install httpd-devel

또한 다음이 필요할 수도 있습니다.

apt-get install apache2-threaded-dev

완료되면 다시 시도하고 마지막에 아파치를 다시 시작하십시오.

sudo apachectl -k graceful

관련 정보