|
14 | 14 | Config script. The Makefile has also been updated to include CFLAGS |
15 | 15 | defines for popular modern OSes. |
16 | 16 |
|
17 | | - 1. |
| 17 | + 1. |
18 | 18 |
|
19 | 19 | Read the NEWS file to find out about the exciting new features in |
20 | 20 | this version. Other good reads are BUGS, doc/example.conf, and |
21 | 21 | README.FIRST. |
22 | 22 |
|
23 | | - 2. |
| 23 | + 2. |
| 24 | + |
| 25 | + In broad outline, this project uses autoconf, so the "normal" |
| 26 | + instalation procedure applies, which you can go ahead and use |
| 27 | + if you're already familiar with it: |
| 28 | + |
| 29 | + $ autoconf |
| 30 | + $ ./configure |
| 31 | + $ make |
| 32 | + $ sudo make install |
| 33 | + |
| 34 | + If not, you'll want to read the rest of this document. |
| 35 | + |
| 36 | + 3. |
| 37 | + |
| 38 | + Firstly, check that there is a file "configure" in this directory, and |
| 39 | + if not, run |
| 40 | + |
| 41 | + $ autoconf |
| 42 | + |
| 43 | + If you don't have autoconf, install it from your distribution's package |
| 44 | + manager, or get the latest version from |
| 45 | + https://ftp.gnu.org/gnu/autoconf/ and follow the instructions in its own |
| 46 | + INSTALL file. |
| 47 | + |
| 48 | + (Autoconf is also at https://github.com/autotools-mirror/autoconf but |
| 49 | + there it lacks its own pre-built configure script; it needs to be |
| 50 | + generated by autoconf, which induces a hole-in-my-bucket kind of |
| 51 | + problem.) |
| 52 | + |
| 53 | + Don't forget to come back here and start again! |
| 54 | + |
| 55 | + 4. |
24 | 56 |
|
25 | 57 | Run the configure script. It will create include/setup.h and the |
26 | 58 | Makefiles to match your system. In ircd-ratbox, the paths are now handled |
27 | 59 | with the --prefix option to configure, not in config.h. |
28 | 60 | /usr/local/ircd is the default if no prefix is specified. |
29 | 61 |
|
30 | | - ./configure --prefix="/usr/local/ircd" |
| 62 | + $ ./configure --prefix="/usr/local/ircd" |
31 | 63 |
|
32 | 64 | Note: There are some special optional parameters to the configure |
33 | 65 | script that some admins may wish to use. |
34 | 66 |
|
35 | | - * |
| 67 | + * |
36 | 68 |
|
37 | 69 | --enable-kqueue - Use the superior kqueue(2) system call as |
38 | 70 | opposed to the default poll(2). This is currently only available |
39 | 71 | on FreeBSD 4.1 or higher. |
40 | 72 |
|
41 | | - * |
| 73 | + * |
42 | 74 |
|
43 | 75 | --enable-devpoll - Enable the superior /dev/poll support on |
44 | 76 | Solaris. Linux /dev/poll is broken and will not work with this |
45 | 77 | option. |
46 | 78 |
|
47 | | - * |
| 79 | + * |
48 | 80 |
|
49 | 81 | --enable-epoll - Enable the superior Linux Edge-Triggered Polling |
50 | 82 | system. This is currently only available on 2.5 Linux kernel |
51 | 83 | versions or later. |
52 | 84 |
|
53 | | - * |
| 85 | + * |
54 | 86 |
|
55 | 87 | --enable-openssl - Enable the openssl dependent crypto functions. |
56 | 88 | This will allow CHALLENGE to work and encrypted links. On systems |
|
59 | 91 | must specify a path with this option |
60 | 92 | (--enable-openssl=/path/to/openssl) |
61 | 93 |
|
62 | | - * |
| 94 | + * |
63 | 95 |
|
64 | 96 | --enable-ipv6 - Enable IPv6 support. |
65 | 97 |
|
66 | | - * |
| 98 | + * |
67 | 99 |
|
68 | 100 | --disable-assert - Disable some of the debugging code. This |
69 | 101 | should be used on all production servers for maximum speed and to |
70 | 102 | prevent cores from things that shouldn't normally happen. |
71 | 103 |
|
72 | | - * |
| 104 | + * |
73 | 105 |
|
74 | 106 | --enable-small-net - Tunes the server for smaller networks by |
75 | 107 | reducing the startup memory footprint. This should really only be |
76 | 108 | used for *small* networks, as this tends to be a performance hit |
77 | 109 | on larger networks. |
78 | 110 |
|
79 | | - * |
| 111 | + * |
80 | 112 |
|
81 | 113 | --with-nicklen=LENGTH - Sets the maximum NICK length. Note that |
82 | 114 | this must be consistent across your entire network. |
83 | | - 3. |
| 115 | + 5. |
84 | 116 |
|
85 | 117 | make should build ircd. |
86 | 118 |
|
87 | | - 4. |
| 119 | + $ make |
| 120 | + |
| 121 | + 6. |
88 | 122 |
|
89 | 123 | make install will install the server, modules, and tools in the |
90 | | - the prefix specified when configure was run. |
| 124 | + the prefix specified when configure was run. Unless you've set the |
| 125 | + prefix to your own home directory, you'll need to be root for this step: |
| 126 | + |
| 127 | + $ sudo make |
91 | 128 |
|
92 | | - 5. |
| 129 | + or |
| 130 | + |
| 131 | + $ su - |
| 132 | + # make |
| 133 | + |
| 134 | + 7. |
93 | 135 |
|
94 | 136 | If you wish to enable the user log, oper log, and failed oper log, |
95 | 137 | issue these commands at the shell prompt (in the prefix directory) |
|
99 | 141 | $ touch logs/foperlog |
100 | 142 |
|
101 | 143 | Note: If you use different names in ircd.conf, you must 'touch' the |
102 | | - specific names. |
| 144 | + names you've specified. |
103 | 145 |
|
104 | | - 6. |
| 146 | + 8. |
105 | 147 |
|
106 | 148 | If you are upgrading from Hybrid 5 or Hybrid 6, the config file has |
107 | 149 | changed drastically... |
|
118 | 160 | EDIT IT! There are still things that need changing in the config, |
119 | 161 | including the fact that classes MUST be above auth/connect blocks! |
120 | 162 |
|
121 | | - 7. |
| 163 | + 9. |
122 | 164 |
|
123 | 165 | If you are upgrading from Hybrid 5 or Hybrid 6, the kline file has |
124 | 166 | also changed... |
|
146 | 188 | DISCUSSION: There is a mailing list for discussion of ratbox issues, |
147 | 189 | To subscribe, visit: |
148 | 190 | http://lists.ratbox.org/cgi-bin/mailman/listinfo/ircd-ratbox |
149 | | - |
| 191 | + |
150 | 192 | ---------------------------------------------------------------------- |
151 | 193 |
|
152 | 194 | NOTES |
153 | 195 |
|
154 | 196 | The best way to get a backtrace of the core is to follow this sequence of |
155 | 197 | instructions: |
156 | 198 |
|
157 | | - 1. |
| 199 | + 1. |
158 | 200 |
|
159 | 201 | Change to the directory containing the core file |
160 | 202 |
|
161 | | - 2. |
| 203 | + 2. |
162 | 204 |
|
163 | 205 | Run gdb on the binary and the core file. With an unmodified ircd-ratbox |
164 | 206 | installation, an example command line is below (in the /usr/local/ircd |
165 | 207 | directory) |
166 | 208 |
|
167 | 209 | $ gdb bin/ircd ircd.core |
168 | 210 |
|
169 | | - 3. |
| 211 | + 3. |
170 | 212 |
|
171 | 213 | At the "(gdb)" prompt, enter the command "bt" |
172 | 214 |
|
173 | | - 4. |
| 215 | + 4. |
174 | 216 |
|
175 | 217 | Save the output of the backtrace command and send it to |
176 | 218 | |
177 | 219 |
|
178 | | - 5. |
| 220 | + 5. |
179 | 221 |
|
180 | 222 | Be sure to save the ircd binary, the modules, and the core file in a |
181 | 223 | safe place in case the developers need to look deeper than a backtrace |
|
0 commit comments