1

MediaTemple (専用仮想/CentOS Linux) で新しいサーバーをセットアップし、開発者ツールをインストールするだけですが、Mongo はインストールされません。

また、バージョン 1.2.10 を DL しようとしてpecl upgrade mongoいます。インストールしたら実行して 2.0.6 に移行できると思いますよね?

ここに私の出力があります:

[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
4

1 に答える 1

3

ここでは、mongodb 用の PHP ドライバーをインストールしています。

CentOS に mongodb をインストールするには、こちらの手順に従ってください。これらの手順では、10gen リポジトリを追加する方法を示します。これにより、(yum を使用して) 最新の実動対応の mongodb リリース (2.0.6) をインストールできるようになります。

Ubuntuではないことは承知していますが、PHPドライバーのインストールに関する問題については、実行しても違いはありますか

sudo pecl install mongo

mongo php ドライバーのインストールに関する情報がここにあります。同じライブラリーとして「apt-get」要素を「yum」に置き換えるだけで、依存関係が適用されます。

これは、mongo php ドライバーの使用に関するチュートリアルです。

于 2012-06-27T08:05:45.207 に答える