...
First, you need to add Sphinx Search repository into your system and update the package list
sudo add-apt-repository ppa:builds/sphinxsearch-rel22
sudo apt-get update
Next, you can install sphinx search by the following command:
sudo apt-get install sphinxsearch
To check whether sphinx search has been properly installed, type
searchd
Into your console, the outcome should look like the below
Sphinx 2.2.11-id64-release (95ae9a6)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Finally, you need to go to Magento's root folder and run the following commands to install additional libraries
composer require neutron/sphinxsearch-api
composer require foolz/sphinxql-query-builder
...