This repository has been archived by the owner on Feb 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathINSTALL
118 lines (76 loc) · 3.82 KB
/
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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
SZARP installation guide
========================
Author: Paweł Pałucha <[email protected]>
This file briefly describes how to install SZARP software. The simplest way of
installation for end-users it to use Debian packages.
SZARP is compile and run on Debian GNU/Linux (i386, amd64, armel/armhf)
and Ubuntu. Some client applications are also cross-compiled for Windows.
All the development and testing is done only on Debian GNU/Linux, so you can
run into some problems with other distributions.
See INSTALL.Windows for information about Windows platform.
1. Installation from source.
NOTE:
This method of installation is not recommended - you will need to manually setup
some configuration files, crontab entries and so on. This method is not used
by us or any SZARP user we know. If you want to play with source code, we
recommend to install Debian packages so all the stuff will be in correct place.
Then you can replace binaries with your own compiled versions or run them
directly from your working directory.
SZARP uses autotools, but is deployed without configure scripts, so you need
automake, autoconf, libtool and pkg-config. The commands to build SZARP are:
# ./autogen.sh
This invokes automake and autoconf, it should run without any error messages.
In case of errors, check whether you have newest versions of automake,
autoconf, libtool and pkg-config installed.
# ./configure
This is the invocation of configure scripts. There are many options available,
see:
# ./configure --help
Configuration for Windows is described in INSTALL.Windows. There are
'--with-XXX' and '--without-XXX' options available to turn on/off optional
libraries. For example, to get server-only software (and get short compile time),
you can use '--without-x'.
By default all optional libraries are turned on. If some library is not found,
SZARP is configured without this library. At the end of configure run, there's
a report generated with information what libraries where found. To get full
functionality, you must have all libraries. You can skip some libraries, but
some parts of code will fail to compile (yes, we don't test every possible
combination of missing libraries). The safest bet is to have all libraries.
If you plan to debug programs, you should change compiler options. By default
'-g' is used, but -O2 (optimization) fools debugger. To get debugger-friendly
code run configure with options:
# ./configure CFLAGS=-g CXXFLAGS=-g
Now:
# make
This should compile everything. If there are errors, you have found a bug. But
if you're not using some old releases of Debian (ie. lenny, squeeze), there's
a little chance that we will help you with this. Patches are welcome if they do
not brake Debian compilation ;-). If you configure SZARP with LUA parameters
optimiser enabled, you need a lot of memory during compilation - about 1 GB
without '-g' options, 2 GB is better if you use '-g'.
# make doc
This creates html documentation. You need lots of Docbook stuff installed for
this to work, ./configure should warn you about missing programs.
Now you can become root and type:
# make install
Default install directory is /opt/szarp. You can install SZARP under other
directory by using:
# make DESTDIR=/tmp install
or by passing '--prefix' argument to ./configure.
To install programs without debugger information (smaller, faster binaries
but debugging not possible), you can use:
# make install-strip
To clean everything use:
# make clean
To get rid also of files generated by autotools, use:
# make maintainer-clean
2. Installation of Debian packages.
This is the simplest and best supported method of installation.
Add following line to /etc/apt/sources.list:
deb http://www.szarp.org/debian wheezy main
Then run:
# apt-get update
and one of the following:
# apt-get install szarp-server
# apt-get install szarp-terminal
# apt-get install szarp-viewer