~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to tags/mysql-proxy-0.5.0/INSTALL

  • Committer: Kay Roepke
  • Author(s): Jan Kneschke
  • Date: 2008-01-23 22:00:28 UTC
  • Revision ID: kay@mysql.com-20080123220028-hq2xqb69apa75fnx
first round on mysql-shell based on the proxy code

this is mostly a verification if the proxy-code is flexible enough to handle 
all three scenarios of: client, server and forwarding (proxy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Installation Instructions
 
2
*************************
 
3
 
 
4
Copyright (C) 2007 MySQL AB
 
5
 
 
6
Installing from SVN
 
7
===================
 
8
 
 
9
Get the SVN source from:
 
10
 
 
11
  $ svn co .../mysql-proxy/trunk/ mysql-proxy/
 
12
 
 
13
Later you can update the tree by running
 
14
 
 
15
  $ cd mysql-proxy/
 
16
  $ svn up
 
17
 
 
18
As you built from SVN none of the configure scripts is prepared. You need:
 
19
 
 
20
- autoconf 2.56 or higer
 
21
- automake 1.9 or higher
 
22
 
 
23
to generate the configure script. Use the provided autogen.sh to rebuild 
 
24
the config-scripts:
 
25
 
 
26
  $ sh ./autogen.sh
 
27
 
 
28
You should have a configure script, ready to build.
 
29
 
 
30
Installing from Source 
 
31
======================
 
32
 
 
33
  $ gzip -cd mysql-proxy-0.5.0.tar.gz | tar xf -
 
34
  $ cd mysql-proxy-0.5.0
 
35
 
 
36
Preparing the Build
 
37
===================
 
38
 
 
39
As you have the source in the right place and the configure script exists, you have 
 
40
to make sure that the dependencies are in place;
 
41
 
 
42
- libevent 1.x or higher (1.3b or later is prefered)
 
43
- lua 5.1
 
44
- glib2 2.4.0 or higer
 
45
- pkg-config 
 
46
 
 
47
Ubuntu/Debian
 
48
-------------
 
49
 
 
50
  $ apt-get install \
 
51
      pkg-config \
 
52
      liblua5.1-0 \
 
53
      liblua5.1-dev \
 
54
      libevent-dev \
 
55
      libevent1  \
 
56
      libglib2.0-0 \
 
57
      libglib2.0-dev 
 
58
 
 
59
On Debian and Ubuntu you need to tell the configure script that it has to use 
 
60
"pkg-config lua5.1" to detect the lua-libriaries instead of the default 
 
61
"pkg-config lua".
 
62
 
 
63
  $ ./configure --with-lua=lua5.1
 
64
 
 
65
All other Platforms
 
66
-------------------
 
67
 
 
68
  $ ./configure 
 
69
 
 
70
Building
 
71
========
 
72
 
 
73
  $ make
 
74
  $ make install
 
75
 
 
76
You should have a /usr/local/sbin/mysql-proxy now.
 
77
 
 
78