If you are trying to install the searchd system as a Windows service by running the following command:
M:\sphinx-0.9.9-win32\bin\searchd –install –config M:\sphinx-0.9.9-win32\sphinx.conf.in –servicename SphinxSearch
And getting an system error message something like below:
[text] Installing service…FATAL: OpenSCManager() failed: code=5, error=Access is denied.
[/text]
To fix this problem, let switch to an Administrator account to run the command prompt and try it again and/or try with the safe Mode, it may works well.
Note: to start the CommandPrompt tool (C:\Windows\System32\cmd.exe) as an Administrator: right click on the icon and select “Run as administrator”
If you need to uninstall the SphinxSearch service, read this post