2013-04-25 5 views
1

나는 어둠 속에서 어수선하게 굴고 있음을 인정해야합니다. 나는 PHP에 능숙하지만 LINUX 서버 관리에 대해서는 거의 아무것도 모른다. 나는 나의 64 비트에 CentOS 6 서버에 memcached를 설치해야하고 나는 단계가 expained 다음과 memcached를 데몬가 지금 내 서버에서 실행되는 두 개의 매우 유익한 자원 CentOS 6에 memcached 설치

http://boomshadow.net/tech/installs/how-to-install-memcached/

을 가로 질러왔다. 이 대부분의 - 나는 단계 여기 여기

http://boomshadow.net/tech/installs/how-to-install-php-memcache/

설명 출력이 내가이의 비밀을 할 수 없습니다

[[email protected] ~]# pecl install memcache 
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update 
pecl.php.net" to update 
downloading memcache-3.0.8.tgz ... 
Starting to download memcache-3.0.8.tgz (70,523 bytes) 
.................done: 70,523 bytes 
15 source files, building 
running: phpize 
Configuring for: 
PHP Api Version:   20090626 
Zend Module Api No:  20090626 
Zend Extension Api No: 220090626 
Enable memcache session handler support? [yes] : yes 
building in /var/tmp/pear-build-rootZi8fyR/memcache-3.0.8 
running: /var/tmp/memcache/configure --enable-memcache-session=yes 
checking for grep that handles long lines and -e... /bin/grep 
checking for egrep... /bin/grep -E 
checking for a sed that does not truncate output... /bin/sed 
checking for cc... no 
checking for gcc... no 
configure: error: in `/var/tmp/pear-build-rootZi8fyR/memcache-3.0.8': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details. 
ERROR: `/var/tmp/memcache/configure --enable-memcache-session=yes' failed 
[[email protected] 

를 얻을 수있다 시도 그래서 나는 아직도 memcache를위한 PHP 확장을 설치해야합니다 그리스어입니다. 내가 생각한 바는 pecl이 다운로드 한 소스에서 PHP memcache 드라이버를 빌드하기 위해 C 컴파일러를 찾고있어 찾을 수 없다는 것입니다. 비록 그것이 맞다하더라도 많이 도움이되지 않습니다.

제대로 작동하려면 여기를 클릭하면됩니다.

답변

7

오래된 습관이 점점 더 어려워집니다. 제 자신의 질문에 다시 한번 대답합니다.

# yum groupinstall 'Development Tools' 

gcc 컴파일러를 포함한 개발 도구를 설치하십시오. 오류 : 당신은 또한 당신이 전체의 구성을 온 경우

# yum install zlib-devel 
0

을 할 필요가 있으므로 memcahe.so 확장은 ZLIB를 사용 아니, sasl.h 사용할 수 없습니다. configure를 --disable-memcached-sasl로 실행하여이 검사를 비활성화하십시오. 오류 : /var/tmp/memcached/configure --with-libmemcached-dir=no' failed

./configure --enable-memcached-sasl=no 
make 
make install 

pecl install memcached