| | Version at: 16/03/2014, 19:07 vs. version at: 16/03/2014, 19:09 |
---|
1 | 1 | 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. |
---|
2 | 2 | |
---|
3 | 3 | ##Installing Sphinx on the VM |
---|
4 | 4 | |
---|
5 | 5 | * Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser): |
---|
6 | 6 | |
---|
7 | 7 | mkdir ~/downloads |
---|
8 | 8 | |
---|
9 | 9 | cd ~/downloads/ |
---|
10 | 10 | |
---|
11 | 11 | wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb |
---|
12 | 12 | |
---|
13 | 13 | su - |
---|
14 | 14 | |
---|
15 | 15 | dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb |
---|
16 | 16 | |
---|
17 | 17 | exit |
---|
18 | 18 | |
---|
19 | 19 | * Now make the Sphinx directory and subdirectories: |
---|
20 | 20 | |
---|
21 | 21 | mkdir ~/sphinx |
---|
22 | 22 | |
---|
23 | 23 | cd ~/sphinx |
---|
24 | 24 | |
---|
25 | 25 | mkdir indices |
---|
26 | 26 | |
---|
27 | 27 | mkdir log |
---|
28 | 28 | |
---|
| 29 | * Edit docs/generate_sphinx_conf.php as follows: |
---|
29 | 30 | |
---|
| 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 |
---|
30 | 44 | |
---|
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.
Actions