File: INSTALL

package info (click to toggle)
spl 1.0~pre2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,240 kB
  • ctags: 1,987
  • sloc: ansic: 15,272; yacc: 3,167; sh: 272; makefile: 186; xml: 156
file content (88 lines) | stat: -rw-r--r-- 2,555 bytes parent folder | download
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

SPL Installation Instructions
=============================


Prerequisites
-------------

SPL currently supports Linux (and other POSIX environments), MacOS-X (Darwin),
BSD Systems, SGI IRIX, Cygwin (Win32) and native Win32 (using MinGW).

For building SPL you need:

	- A GNU make (gmake)
	- The usual shell scripting tools (bash, awk, etc..)
	- An up-to-date GCC (SPL is using some C99 features)
	- The Bison parser generator

It also is strongly recommendes to have the following packages (including the
development files) installed:

	- The PCRE regular expressions library
	- The Readline library
	- The pthreads library

Without them SPL would be built without some important and often needed
features.

SPL comes with a lot of additional modules. Some of them are bindings to
external libraries. Theses libraries need to be installed (including the
development files) in order to build those additional SPL modules:

	- The Expat XML SAX parser library
	- The SQLite database library (version 3)
	- The MySQL database client libraries
	- The PostgreSQL database client libraries
	- The LibXML2 and LibXSLT libraries
	- The SDL and the SDL_Image libraries
	- The LibUUID library (from e2fsprogs)
	- The SMOKE library (kdebindings)


Configuring
-----------

Usually it is not needed to configure the SPL build process. It autodetects
which libraries are installed and automatically disables some of the features
when needed.

The results of this autodetection can be displayed using "make showconfig".

It also is possible to make some manual configurations by editing the "CONFIG"
section in the 'GNUmakefile' or altering the 'config.cache' file.


Building and Installing
-----------------------

SPL can be built by running

	make

and installed by running

	make install

On BSD systems one needs to use the program "gmake" instead of "make" for
building and installing SPL.


Installing VIM syntax highlighting for SPL scripts
--------------------------------------------------

In a final step you might want to install VIM syntax highlighting for SPL
scripts. To do so you first need to install the highlighting rules:

	mkdir -p ~/.vim/syntax
	cp syntax-spl.vim ~/.vim/syntax/spl.vim
	cp syntax-spltpl.vim ~/.vim/syntax/spltpl.vim

And then activate them by adding these lines to your ~/.vimrc file:

	au BufRead,BufNewFile *.spl,*.webspl set filetype=spl
	au BufRead,BufNewFile *.spltpl set filetype=spltpl

After that, VIM will automatically put the SPL syntax highlighting rules in
place whenever you open an SPL script in the editor.