Version at: 16/03/2014, 19:07 vs. version at: 16/03/2014, 19:09
11Execute these instructions after you have followed the other instructions for setting up a development virtual machine. It is assumed that you have already installed libpq5.
22
33##Installing Sphinx on the VM
44
55* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):
66
77 mkdir ~/downloads
88
99 cd ~/downloads/
1010
1111 wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb
1212
1313 su -
1414
1515 dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb
1616
1717 exit
1818
1919* Now make the Sphinx directory and subdirectories:
2020
2121 mkdir ~/sphinx
2222
2323 cd ~/sphinx
2424
2525 mkdir indices
2626
2727 mkdir log
2828
29* Edit docs/generate_sphinx_conf.php as follows:
2930
31 line 15
32 $sourcePath = "/home/tatoeba/sphinx/indices"
33 line 193-196:
34 - sql\_user = root
35 - sql\_pass = tatoeba
36 - sql\_db = tatoeba
37 - sql\_sock = /var/run/mysqld/mysqld.sock
38 line 383:
39 - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
40 line 384, 385, 388:
41 - log = /home/tatoeba/sphinx/log/searchd.log
42 - query\_log = /home/tatoeba/sphinx/log/query.log
43 - pid\_file = /home/tatoeba/sphinx/log/searchd.pid
3044
diff view generated by jsdifflib

Version at: 16/03/2014, 19:07

Execute these instructions after you have followed the other instructions for setting up a development virtual machine. It is assumed that you have already installed libpq5.

##Installing Sphinx on the VM

* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):

    mkdir ~/downloads

    cd ~/downloads/

    wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb

    su -

    dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb

    exit 

* Now make the Sphinx directory and subdirectories:

    mkdir ~/sphinx

    cd ~/sphinx

    mkdir indices

    mkdir log


version at: 16/03/2014, 19:09

Execute these instructions after you have followed the other instructions for setting up a development virtual machine. It is assumed that you have already installed libpq5.

##Installing Sphinx on the VM

* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):

    mkdir ~/downloads

    cd ~/downloads/

    wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb

    su -

    dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb

    exit 

* Now make the Sphinx directory and subdirectories:

    mkdir ~/sphinx

    cd ~/sphinx

    mkdir indices

    mkdir log

* Edit docs/generate_sphinx_conf.php as follows:

    line 15
        $sourcePath = "/home/tatoeba/sphinx/indices"
    line 193-196:
        - sql\_user = root
        - sql\_pass = tatoeba
        - sql\_db = tatoeba
        - sql\_sock = /var/run/mysqld/mysqld.sock
    line 383:
        - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
    line 384, 385, 388:
        - log = /home/tatoeba/sphinx/log/searchd.log
        - query\_log = /home/tatoeba/sphinx/log/query.log
        - pid\_file = /home/tatoeba/sphinx/log/searchd.pid

Note

The lines in green are the lines that have been added in the new version. The lines in red are those that have been removed.