2012-06-27 3 views
1

MediaTemple (전용 가상/CentOS Linux)에 새로운 서버를 설치하고 개발자 도구를 설치했지만 Mongo가 아이디어를 설치하지 않습니까?MongoDB 설치 오류

또한 버전 1.2.10을 DL하려고 시도 중입니다. 일단 2.0.6으로 이동하려면 pecl upgrade mongo을 설치하면됩니다. 여기 당신이 MongoDB를위한 PHP 드라이버를 설치하고,

[root ~]# pecl install mongo 
downloading mongo-1.2.10.tgz ... 
Starting to download mongo-1.2.10.tgz (86,463 bytes) 
.....................done: 86,463 bytes 
36 source files, building 
running: phpize 
Configuring for: 
PHP Api Version:   20041225 
Zend Module Api No:  20060613 
Zend Extension Api No: 220060519 
building in /var/tmp/pear-build-root/mongo-1.2.10 
running: /root/tmp/pear/cache/mongo-1.2.10/configure 
checking for egrep... grep -E 
checking for a sed that does not truncate output... //bin/sed 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... configure: error: cannot run C compiled  programs. 
If you meant to cross compile, use `--host'. 
See `config.log' for more details. 
ERROR: `/root/tmp/pear/cache/mongo-1.2.10/configure' failed 

답변

3

당신은 PECL과 MongoDB를 설치하지 않는 :

여기 내 출력합니다.

CentOS에 mongodb를 설치하려면 here의 지침을 따르십시오. 이 지침은 10gen repo를 추가하는 방법을 보여줍니다. 그러면 yum을 사용하여 최신 production-ready mongodb 릴리스 (2.0.6)를 설치할 수 있습니다. 당신이

sudo pecl install mongo 

를 실행하는 몇 가지 정보 here는 몽고의 PHP 드라이버를 설치하기에 있다면

나는 그것이 우분투 아니다하지만 PHP 드라이버를 설치하여 문제를 egarding 실현, 그것은 어떤 차이가 않습니다, 단지 대체 ' apt-get '요소가'yum '인 라이브러리와 종속성은 afaik를 적용합니다.

mongo php 드라이버 사용에 대한 설명은 tutorial입니다.