Updated README: Equal sign not required with `--mode` flag.
[sgk-go] / INSTALL
CommitLineData
7eeb782e
AT
1 GNU GO INSTALLATION INSTRUCTIONS
2
3Get the most recent tar file from ftp.gnu.org or a mirror (see
4http://www.gnu.org/order/ftp.html for a list).
5
6Untar the sources, change to the directory gnugo-3.6. Now do:
7
8 ./configure [OPTIONS]
9 make
10
11Several configure options will be explained below. You do not need to set
12these unless you are dissatisfied with GNU Go's performance or wish to vary
13the experimental options.
14
15 As an example,
16
17 ./configure --enable-level=9 --enable-cosmic-gnugo
18
19will make a binary in which the default level is 9, and the experimental
20"cosmic"' option is enabled. A list of all configure options can be obtained
21by running `./configure --help'. Further information about the experimental
22options can be found in the next section.
23
24 After running configure and make, you have now made a binary called
25`interface/gnugo'. Now (running as root) type
26
27 make install
28
29to install gnugo in `/usr/local/bin'.
30
31 There are different methods of using GNU Go. You may run it from the
32command line by just typing:
33
34 gnugo
35
36but it is nicer to run it using CGoban 1 (under X Window System) or Jago (on
37any platform with a Java Runtime Environment).
38
39 You can get the most recent version of CGoban 1 from
40http://sourceforge.net/projects/cgoban1/. The earlier version
411.12 is available from http://www.igoweb.org/~wms/comp/cgoban/index.html.
42The CGoban version number MUST be 1.9.1 at least or it won't work. CGoban 2
43will not work.
44
45 See the file README for instructions on how to run GNU Go from Cgoban, or
46for Jago.
47
48
49 RAM CACHE
50
51By default, GNU Go makes a cache of 8 Megabytes in RAM for its
52internal use. The cache is used to store intermediate results during
53its analysis of the position.
54
55Increasing the cache size will often give a modest speed improvement.
56If your system has lots of RAM, consider increasing the cache
57size. But if the cache is too large, swapping will occur,
58causing hard drive accesses and degrading performance. If
59your hard drive seems to be running excessively your cache
60may be too large. On GNU/Linux systems, you may detect swapping
61using the program 'top'. Use the 'f' command to toggle SWAP
62display.
63
64You may override the size of the default cache at compile time
65by running one of:
66
67 ./configure --enable-cache-size=n
68
69To set the cache size to n. For example
70
71 ./configure --enable-cache-size=48
72
73creates a cache of size 48. If you omit this, your default
74cache size will be 8. You must recompile and reinstall GNU Go
75after reconfiguring it by running make and make install.
76
77You may override the compile-time defaults by running gnugo with
78the option `--cache-size n', where n is the size (in megabytes) of
79the cache you want, and `--level n' where n is the level desired.
80We will discuss setting these parameters next in detail.
81
82 DEFAULT LEVEL
83
84GNU Go can play at different levels. Up to level 10 is
85supported. At level 10 GNU Go is much more accurate but takes
86an average of about 1.6 times longer to play than at level 8.
87
88The level can be set at run time using the --level option.
89If you don't set this, the default level will be used. You
90can set the default level with the configure option
91--enable-level=n. For example
92
93./configure --enable-level=9
94
95sets the default level to 9. If you omit this parameter,
96the compiler sets the default level to 10. We recommend
97using level 10 unless you find it too slow. If you decide
98you want to change the default you may rerun configure
99and recompile the program.
100
101 DFA
102
103GNU Go has two versions of the pattern matcher. The default
104version uses a Discrete Finite Automaton (DFA). It can be
105disabled, giving the old matcher (which was the default in
106GNU Go 3.0) with './configure --disable-dfa'.
107
108 EXPERIMENTAL OPTIONS
109
110--enable-experimental-semeai enables an experimental semeai
111module. This will result in an engine that is probably stronger
112but slightly slower and less debugged. It is not guaranteed
113that the semeai code could not cause crashes in some situations.
114
115--enable-owl-threats will result in an engine that does more
116life and death analysis. It will be stronger but slower.
117
118There are other experimental options but we only mention these.
119
120 WINDOWS
121
122Windows installation is described in a separate file, called WINDOWS.
123
124 MACINTOSH
125
126If you have Mac OS X you can build GNU Go using Apple's compiler,
127which is derived from GCC. We recommend adding the flag -no-cpp-precomp
128to CFLAGS.
129
130 THE MANUAL
131
132You can obtain a printed copy of the manual by running 'make
133gnugo.ps' in the doc/ directory, then printing the resulting
134postscript file @file{gnugo.ps}. The manual contains a great
135deal of information about the algorithms of GNU Go. The first
136few sections serve as a user's manual.
137
138On platforms supporting info documentation, you can usually
139install the manual by executing `make install' (running as
140root) from the doc/ directory. The info documentation can
141be read conveniently from within Emacs by executing the
142command `Control-h i'.
143
144
145
146