2011-11-04 100 views
1

我迷失在如何以正確的方式安裝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?

+1

sphinx.yml,是不是獅身人面像(搜索)的一部分本身。我想它一定是thinkingsphinx的一部分。 – barryhunter

+0

@barryhunter啊我看到了,在我的應用程序中的地方,忘了!讓我看看我能否做到這一點。我猜我必須創建該文件。 – LearningRoR

+0

是你的PATH中的C:\ Sphinx? ('searchd'是否返回可執行文件的路徑?)只要'searchd.exe'和'indexer.exe'在PATH中(SET PATH =%PATH%; C:\ Sphinx') 。 –

回答