0

Sphinx Search を構成しようとすると、次のようになります。これは、多くの人が以前に見たことがあると思います....

(Linux VPS で Cent OS を使用。Sphinx tarball がダウンロードされ、展開されています。)

ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting
this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
your PATH environment variable.

To disable MySQL support, use --without-mysql option.

それで、私は# which mysql-includesそれを見つけるために走りました、そしてこれが私が得たものです...

/usr/bin/which: no mysql-devel in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

それはエイリアンの言語かもしれませんが、今は行き詰まっています。セットアップされて使用されている DB があるため、MySQL がサーバーにインストールされていることを知っています。誰かがこのハードルを越えて私を助けることができますか?

また、次のような使い方の良い例は何--with-mysql-includesですか?

4

1 に答える 1

2
yum install mysql-devel  

これにより、CentOS リポジトリから mysql 開発パッケージが取得されます。

于 2012-12-04T16:04:24.320 に答える