This forum is no longer active. Please post your questions to our new community site

Thinking Sphinx problem

Subscribe to Thinking Sphinx problem 6 post(s), 2 voice(s)

 
Avatar migmartri 7 post(s)

Hello.

I am not able to run thinking_sphink using rubystack included sphinx under windows.

When I execute rake ts:config I receive

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

I´ve configured my config/sphinx.yml in my application this way

development:
bin_path: “C:\Archivos de programa\BitNami RubyStack\sphinx\bin”

… and it keeps raising the error.

What am I missing?

Thank you.

 
Avatar migmartri 7 post(s)

I solved it changing my sphinx.yml configuration file to

bin_path: “C:/ARCHIV~1/BITNAM~1/sphinx/bin”

It seems it was a backslash + space separated directory naming problem.

Now the problem is that after rake ts:index I receive

Stack projects/my-project/config/development.sphinx.conf
FATAL: config file ‘C:/Documents’ does not exist or is not readable

And It seems another directory naming problem(Documents and settings), I am going to try to install rubystack in c:/bitnami directory.

Thank you

Cheers.

 
Avatar migmartri 7 post(s)

It works! :-)

My sphinx.yml config file:

development:
bin_path: “C:/ARCHIV~1/BITNAM~1/sphinx/bin”
config_file: “C:/Docume~1/Administrador/BitNam~1/myproject/config/development.sphinx.conf”

Newbie windows user path problem, sorry. But I think that if rubystack is installed in a separated blank names directory, thinking_sphinx configuration requires extra information as well.

Thank you.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for posting the solution. I’m glad to hear this.

 
Avatar migmartri 7 post(s)

Confirmed, it is a blank separated directory name and backslash issue.

I have moved rubystack installation to c:\bitnami and then sphinx configuration doesn´t require config_file: option.

So finally this is my sphinx.yml file.

development:
bin_path: “C:/bitnami/sphinx/bin”

Thank you.

Cheers

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks, we will investigate this issue and we will fix it.