-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL.unix
69 lines (50 loc) · 3.02 KB
/
INSTALL.unix
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
===============================================================================
Building SWISH++ for Unix
===============================================================================
1. Edit the "config.h" file to your liking. This file controls how the
software runs. You REALLY need to understand and properly set TempDirectory
and WordThreshold. Improperly set, SWISH++ can take hours to index whereas
it should only take minutes. Once you understand them, comment out the
#error lines. (The #error lines are there intentionally to force you to
edit the file.)
2. Go to the "config" directory and edit the "config.mk" file as necessary.
This file controls how the software is compiled.
3. Go back to the top-level directory and type "make". If everything works
out, the software will be built.
4. Type "make install".
===============================================================================
Running SWISH++'s search(1) as a daemon for Unix
===============================================================================
If you are going to run search(1) as a daemon and you want it started
automatically on system boot, you need to call searchmonitor from your system's
start-up scripts.
For SysV-like systems, e.g. Linux and Solaris, type "make install_sysv" and
then edit the variable definitions in the beginning of /etc/init.d/searchd if
necessary.
For most other types of Unix systems, e.g., FreeBSD, add a call to
searchmonitor in /etc/rc.local like:
/path/to/searchmonitor -c /path/to/swish++.conf -s /path/to/search &
In either case, also edit /etc/swish++.conf to your liking.
If you are running search(1) under Solaris and you expect that it will be
heavily used, read README.Solaris.
If you are running search(1) under Mac OS X 10.4 (Tiger) or later, you should
use launchd(8) to start it. Included in this distribution (in the search.plist
file) is a sample launchd propertly list file for doing this.
If you want to use SWISH++ to index your incoming mail automatically, you need
to use Procmail to split messages into individual files. Included in this
distribution (in the procmailrc file) is a sample Procmail recipe for doing
this.
===============================================================================
Notes
===============================================================================
1. Don't complain to me or bother asking me for help if you get either "No such
file or directory" for or errors in the standard C++ headers. It means that
your C++ compiler and/or libraries are improperly installed. I know nothing
about your OS or how your system is (mis)configured. Complain to your
sysadmin: the person who botched the installation and whose job it is to fix
it.
2. Don't bother asking me for precompiled binaries for a particular OS -- I
don't have them.
3. Don't ask me questions like, "Can SWISH++ do this?" The documentation
describing SWISH++ is complete. If you read the documentation and what you
are looking for is not there, then SWISH++ doesn't do it.