| 1 |
Copyright (C) 2004-2025 LeafOK
|
| 2 |
|
| 3 |
This file is free documentation; the Free Software Foundation gives
|
| 4 |
unlimited permission to copy, distribute and modify it.
|
| 5 |
|
| 6 |
System Requirement
|
| 7 |
==================
|
| 8 |
|
| 9 |
Operation System: Linux
|
| 10 |
|
| 11 |
Software:
|
| 12 |
1) GNU C Compiler
|
| 13 |
2) PHP ( Version >= 8.2 )
|
| 14 |
3) MySQL database ( Version >= 8.4 )
|
| 15 |
|
| 16 |
Quick Installation
|
| 17 |
==================
|
| 18 |
|
| 19 |
To install LBBS quickly, please do the following steps:
|
| 20 |
|
| 21 |
1) Extract the source files from a tarball or export from GitHub
|
| 22 |
Run the following command to set up the autoconf/automake environment,
|
| 23 |
sh ./autogen.sh
|
| 24 |
and fix any error if exists.
|
| 25 |
|
| 26 |
2) Compile source files
|
| 27 |
./configure --prefix=/usr/local/lbbs
|
| 28 |
make
|
| 29 |
|
| 30 |
3) Install binary files and data files
|
| 31 |
make install
|
| 32 |
|
| 33 |
4) Create user and group
|
| 34 |
groupadd bbs
|
| 35 |
useradd bbs
|
| 36 |
|
| 37 |
5) Set privileges of files
|
| 38 |
cd /usr/local/lbbs
|
| 39 |
chown bbs:bbs -R lbbs
|
| 40 |
chmod 750 -R lbbs
|
| 41 |
chmod 4750 lbbs/bin/bbsd
|
| 42 |
|
| 43 |
6) Modify following configuration files
|
| 44 |
Default configuration files is saved as *.default, you should rename them first.
|
| 45 |
/usr/local/lbbs/conf/bbsd.conf
|
| 46 |
/usr/local/lbbs/utils/conf/db_conn.inc.php
|
| 47 |
|
| 48 |
7) Startup
|
| 49 |
/usr/local/lbbs/bin/bbsd
|
| 50 |
|
| 51 |
|
| 52 |
Basic Installation
|
| 53 |
==================
|
| 54 |
|
| 55 |
These are generic installation instructions.
|
| 56 |
|
| 57 |
The `configure' shell script attempts to guess correct values for
|
| 58 |
various system-dependent variables used during compilation. It uses
|
| 59 |
those values to create a `Makefile' in each directory of the package.
|
| 60 |
It may also create one or more `.h' files containing system-dependent
|
| 61 |
definitions. Finally, it creates a shell script `config.status' that
|
| 62 |
you can run in the future to recreate the current configuration, and a
|
| 63 |
file `config.log' containing compiler output (useful mainly for
|
| 64 |
debugging `configure').
|
| 65 |
|
| 66 |
It can also use an optional file (typically called `config.cache'
|
| 67 |
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
| 68 |
the results of its tests to speed up reconfiguring. (Caching is
|
| 69 |
disabled by default to prevent problems with accidental use of stale
|
| 70 |
cache files.)
|
| 71 |
|
| 72 |
If you need to do unusual things to compile the package, please try
|
| 73 |
to figure out how `configure' could check whether to do them, and mail
|
| 74 |
diffs or instructions to the address given in the `README' so they can
|
| 75 |
be considered for the next release. If you are using the cache, and at
|
| 76 |
some point `config.cache' contains results you don't want to keep, you
|
| 77 |
may remove or edit it.
|
| 78 |
|
| 79 |
The file `configure.ac' (or `configure.in') is used to create
|
| 80 |
`configure' by a program called `autoconf'. You only need
|
| 81 |
`configure.ac' if you want to change it or regenerate `configure' using
|
| 82 |
a newer version of `autoconf'.
|
| 83 |
|
| 84 |
The simplest way to compile this package is:
|
| 85 |
|
| 86 |
1. `cd' to the directory containing the package's source code and type
|
| 87 |
`./configure' to configure the package for your system. If you're
|
| 88 |
using `csh' on an old version of System V, you might need to type
|
| 89 |
`sh ./configure' instead to prevent `csh' from trying to execute
|
| 90 |
`configure' itself.
|
| 91 |
|
| 92 |
Running `configure' takes awhile. While running, it prints some
|
| 93 |
messages telling which features it is checking for.
|
| 94 |
|
| 95 |
2. Type `make' to compile the package.
|
| 96 |
|
| 97 |
3. Optionally, type `make check' to run any self-tests that come with
|
| 98 |
the package.
|
| 99 |
|
| 100 |
4. Type `make install' to install the programs and any data files and
|
| 101 |
documentation.
|
| 102 |
|
| 103 |
5. You can remove the program binaries and object files from the
|
| 104 |
source code directory by typing `make clean'. To also remove the
|
| 105 |
files that `configure' created (so you can compile the package for
|
| 106 |
a different kind of computer), type `make distclean'. There is
|
| 107 |
also a `make maintainer-clean' target, but that is intended mainly
|
| 108 |
for the package's developers. If you use it, you may have to get
|
| 109 |
all sorts of other programs in order to regenerate files that came
|
| 110 |
with the distribution.
|
| 111 |
|
| 112 |
Compilers and Options
|
| 113 |
=====================
|
| 114 |
|
| 115 |
Some systems require unusual options for compilation or linking that
|
| 116 |
the `configure' script does not know about. Run `./configure --help'
|
| 117 |
for details on some of the pertinent environment variables.
|
| 118 |
|
| 119 |
You can give `configure' initial values for configuration parameters
|
| 120 |
by setting variables in the command line or in the environment. Here
|
| 121 |
is an example:
|
| 122 |
|
| 123 |
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
| 124 |
|
| 125 |
*Note Defining Variables::, for more details.
|
| 126 |
|
| 127 |
Compiling For Multiple Architectures
|
| 128 |
====================================
|
| 129 |
|
| 130 |
You can compile the package for more than one kind of computer at the
|
| 131 |
same time, by placing the object files for each architecture in their
|
| 132 |
own directory. To do this, you must use a version of `make' that
|
| 133 |
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
| 134 |
directory where you want the object files and executables to go and run
|
| 135 |
the `configure' script. `configure' automatically checks for the
|
| 136 |
source code in the directory that `configure' is in and in `..'.
|
| 137 |
|
| 138 |
If you have to use a `make' that does not support the `VPATH'
|
| 139 |
variable, you have to compile the package for one architecture at a
|
| 140 |
time in the source code directory. After you have installed the
|
| 141 |
package for one architecture, use `make distclean' before reconfiguring
|
| 142 |
for another architecture.
|
| 143 |
|
| 144 |
Installation Names
|
| 145 |
==================
|
| 146 |
|
| 147 |
By default, `make install' will install the package's files in
|
| 148 |
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
| 149 |
installation prefix other than `/usr/local' by giving `configure' the
|
| 150 |
option `--prefix=PATH'.
|
| 151 |
|
| 152 |
You can specify separate installation prefixes for
|
| 153 |
architecture-specific files and architecture-independent files. If you
|
| 154 |
give `configure' the option `--exec-prefix=PATH', the package will use
|
| 155 |
PATH as the prefix for installing programs and libraries.
|
| 156 |
Documentation and other data files will still use the regular prefix.
|
| 157 |
|
| 158 |
In addition, if you use an unusual directory layout you can give
|
| 159 |
options like `--bindir=PATH' to specify different values for particular
|
| 160 |
kinds of files. Run `configure --help' for a list of the directories
|
| 161 |
you can set and what kinds of files go in them.
|
| 162 |
|
| 163 |
If the package supports it, you can cause programs to be installed
|
| 164 |
with an extra prefix or suffix on their names by giving `configure' the
|
| 165 |
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
| 166 |
|
| 167 |
Optional Features
|
| 168 |
=================
|
| 169 |
|
| 170 |
Some packages pay attention to `--enable-FEATURE' options to
|
| 171 |
`configure', where FEATURE indicates an optional part of the package.
|
| 172 |
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
| 173 |
is something like `gnu-as' or `x' (for the X Window System). The
|
| 174 |
`README' should mention any `--enable-' and `--with-' options that the
|
| 175 |
package recognizes.
|
| 176 |
|
| 177 |
For packages that use the X Window System, `configure' can usually
|
| 178 |
find the X include and library files automatically, but if it doesn't,
|
| 179 |
you can use the `configure' options `--x-includes=DIR' and
|
| 180 |
`--x-libraries=DIR' to specify their locations.
|
| 181 |
|
| 182 |
Specifying the System Type
|
| 183 |
==========================
|
| 184 |
|
| 185 |
There may be some features `configure' cannot figure out
|
| 186 |
automatically, but needs to determine by the type of machine the package
|
| 187 |
will run on. Usually, assuming the package is built to be run on the
|
| 188 |
_same_ architectures, `configure' can figure that out, but if it prints
|
| 189 |
a message saying it cannot guess the machine type, give it the
|
| 190 |
`--build=TYPE' option. TYPE can either be a short name for the system
|
| 191 |
type, such as `sun4', or a canonical name which has the form:
|
| 192 |
|
| 193 |
CPU-COMPANY-SYSTEM
|
| 194 |
|
| 195 |
where SYSTEM can have one of these forms:
|
| 196 |
|
| 197 |
OS KERNEL-OS
|
| 198 |
|
| 199 |
See the file `config.sub' for the possible values of each field. If
|
| 200 |
`config.sub' isn't included in this package, then this package doesn't
|
| 201 |
need to know the machine type.
|
| 202 |
|
| 203 |
If you are _building_ compiler tools for cross-compiling, you should
|
| 204 |
use the `--target=TYPE' option to select the type of system they will
|
| 205 |
produce code for.
|
| 206 |
|
| 207 |
If you want to _use_ a cross compiler, that generates code for a
|
| 208 |
platform different from the build platform, you should specify the
|
| 209 |
"host" platform (i.e., that on which the generated programs will
|
| 210 |
eventually be run) with `--host=TYPE'.
|
| 211 |
|
| 212 |
Sharing Defaults
|
| 213 |
================
|
| 214 |
|
| 215 |
If you want to set default values for `configure' scripts to share,
|
| 216 |
you can create a site shell script called `config.site' that gives
|
| 217 |
default values for variables like `CC', `cache_file', and `prefix'.
|
| 218 |
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
| 219 |
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
| 220 |
`CONFIG_SITE' environment variable to the location of the site script.
|
| 221 |
A warning: not all `configure' scripts look for a site script.
|
| 222 |
|
| 223 |
Defining Variables
|
| 224 |
==================
|
| 225 |
|
| 226 |
Variables not defined in a site shell script can be set in the
|
| 227 |
environment passed to `configure'. However, some packages may run
|
| 228 |
configure again during the build, and the customized values of these
|
| 229 |
variables may be lost. In order to avoid this problem, you should set
|
| 230 |
them in the `configure' command line, using `VAR=value'. For example:
|
| 231 |
|
| 232 |
./configure CC=/usr/local2/bin/gcc
|
| 233 |
|
| 234 |
will cause the specified gcc to be used as the C compiler (unless it is
|
| 235 |
overridden in the site shell script).
|
| 236 |
|
| 237 |
`configure' Invocation
|
| 238 |
======================
|
| 239 |
|
| 240 |
`configure' recognizes the following options to control how it
|
| 241 |
operates.
|
| 242 |
|
| 243 |
`--help'
|
| 244 |
`-h'
|
| 245 |
Print a summary of the options to `configure', and exit.
|
| 246 |
|
| 247 |
`--version'
|
| 248 |
`-V'
|
| 249 |
Print the version of Autoconf used to generate the `configure'
|
| 250 |
script, and exit.
|
| 251 |
|
| 252 |
`--cache-file=FILE'
|
| 253 |
Enable the cache: use and save the results of the tests in FILE,
|
| 254 |
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
| 255 |
disable caching.
|
| 256 |
|
| 257 |
`--config-cache'
|
| 258 |
`-C'
|
| 259 |
Alias for `--cache-file=config.cache'.
|
| 260 |
|
| 261 |
`--quiet'
|
| 262 |
`--silent'
|
| 263 |
`-q'
|
| 264 |
Do not print messages saying which checks are being made. To
|
| 265 |
suppress all normal output, redirect it to `/dev/null' (any error
|
| 266 |
messages will still be shown).
|
| 267 |
|
| 268 |
`--srcdir=DIR'
|
| 269 |
Look for the package's source code in directory DIR. Usually
|
| 270 |
`configure' can determine that directory automatically.
|
| 271 |
|
| 272 |
`configure' also accepts some other, not widely useful, options. Run
|
| 273 |
`configure --help' for more details.
|
| 274 |
|