Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running the latest debian as OS.

I installed Sphinx using

apt-get install sphinxsearch

However, I need to communicate with sphinx trough PHP. In order to do so I downloaded the latest Sphinx version to obtain the phpapi.

wget http://sphinxsearch.com/files/sphinx-2.0.5-release.tar.gz

When I try to perform a query I get an error about versions.

Query failed: searchd error: client version is higher than daemon version (client is v.1.25, daemon is v.1.22)

Apperently apt-get doesn't install the latest version. Doing an OS update and upgrade does not solve this either.

So I assume I have to update my sphinx installation from the downloaded source. Can I simply compile and install the source without losing data?

Or do you guys have another suggestion?

share|improve this question
    
Are you using latest debian or latest stable debian? You can always try downloading 2.04 version of the phpapi? –  Eric DANNIELOU Sep 15 '12 at 12:17
    
Latest stable version of debian. I can't find the previous version, and I think I prefer updating sphinx. –  Pim Reijersen Sep 15 '12 at 12:46
    
You can have a look at testing and sid packages but they are "only" 2.0.4 –  Eric DANNIELOU Sep 15 '12 at 12:53
add comment

1 Answer

up vote 2 down vote accepted

Try uninstalling the default version of Sphinx, and using the latest Ubuntu/Debian package from http://sphinxsearch.com/downloads/release/ in order to take advantage of the latest version of the server.

share|improve this answer
    
could you give more specific instructions on how to properly uninstall sphinx without data loss? –  Pim Reijersen Sep 15 '12 at 12:47
1  
Make filesystem and mysql backup before uninstalling. When you don't specify --purge during apt-get remove, good packages ask if they should keep the data, but I wouldn't rely on this. –  Eric DANNIELOU Sep 15 '12 at 12:51
    
it worked, thank you! –  Pim Reijersen Sep 15 '12 at 13:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.