forked from Inist-CNRS/node-sphinxapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
45 lines (29 loc) · 872 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
== Install Sphinx packages
=== Depot
$ sudo apt-get install mysql-server sphinxsearch
=== Last package
$ wget http://sphinxsearch.com/files/sphinxsearch_2.0.4-oneric_amd64.deb
$ sudo dpkg -i sphinxsearch_2.0.4-oneric_amd64.deb
== Run examples
$ npm install -d
$ cd examples
$ cd server
$ ./pkgi/build
$ ./bin/pkgi-mysqltools -i
$ ./etc/init.d/mysql start
$ echo "CREATE DATABASE test; CONNECT test; SOURCE /usr/share/doc/sphinxsearch/example-conf/example.sql;" | ./bin/pkgi-mysqltools -q
$ usr/bin/indexer --all
$ ./etc/init.d/searchd start
$ ./usr/bin/search test
$ cd ..
$ npm install -d
$ DEBUG=* node ./status.js
=== problems
Try :
mkdir -p ./var/run/mysqld/
mkdir -p ./var/log/mysql/
mkdir -p ./var/lib/sphinx/
mkdir -p ./var/log/sphinx/
mkdir -p ./var/run/searchd/
Mysql don't start :
try to stop apparmor, cf. http://www.pkgi.net/features/apparmor