我迷失在如何以正确的方式安装Sphinx以使其在Windows 7 64x机器上运行我的Rails应用程序。我跟着这个线程:http://railsforum.com/viewtopic.php?id=29437它说设置PATH变量,但没有工作,它只会导致我的git bash路径搞砸了,并禁用它的ruby命令。如何在Windows 7上使用Ruby on Rails安装Thinking Sphinx?
当我启动rails服务器我得到:
Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
* bin_path
* searchd_binary_name
* indexer_binary_name
For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
我的目录位置C:/狮身人面像
但是当我下载二进制配置文件sphinx.yml
文件不存在>http://sphinxsearch.com/downloads/beta/
Win32 binaries w/MySQL+PgSQL+libstemmer+id64 support 2.0.1-beta 5.6M
有没有人找出如何得到这个工作?
更新1:
作出的文件sphinx.yml我的Rails应用程序我的配置/文件夹内,并把这个在他们到目前为止但仍没有运气:
配置/ sphinx.yml
development:
bin_path: "c:/Sphinx/bin"
更新2:
确定我重新安装了它,现在得到这个错误:
Generating Configuration to C:/myapp/config/development.sphinx.conf
rake aborted!
Invalid Database Adapter: Sphinx only supports MySQL and PostgreSQL, not ActiveRecord::ConnectionAdapters::SQLite3Adapter
因此,为了运行Thinking Sphinx,我必须在开发中使用MySql或PostgreSQL,而不是SQLite3?
sphinx.yml,是不是狮身人面像(搜索)的一部分本身。我想它一定是thinkingsphinx的一部分。 – barryhunter
@barryhunter啊我看到了,在我的应用程序中的地方,忘了!让我看看我能否做到这一点。我猜我必须创建该文件。 – LearningRoR
是你的PATH中的C:\ Sphinx? ('searchd'是否返回可执行文件的路径?)只要'searchd.exe'和'indexer.exe'在PATH中(SET PATH =%PATH%; C:\ Sphinx') 。 –