root/funkload/trunk/INSTALL.txt

Revision 52910, 7.8 kB (checked in by bdelbosc, 2 days ago)

cosmit

  • Property svn:keywords set to Id
Line 
1 =================
2 FunkLoad_ INSTALL
3 =================
4
5 :author: Benoit Delbosc
6
7 :address: bdelbosc _at_ nuxeo.com
8
9 :revision: $Id$
10
11 :abstract: This document describes how to install the FunkLoad_ tool.
12
13 .. sectnum::    :depth: 1
14
15 .. contents:: Table of Contents
16
17
18 OS support
19 ----------
20
21 Some parts are OS specific:
22
23 * the monitor server works only on Linux
24 * the credential server is a unix daemon but can run on windows if launched
25   in debug mode (-d)
26
27 Under windows there is a trick to install docutils (see below), you may
28 also rename the scripts with a ``.py`` extension.
29
30
31 Required packages
32 -----------------
33
34 * libexpat1
35
36 * python 2.4 is required by the test runner only if you want to launch
37   python doctest, other stuff work fine with a python 2.3.5.
38   python 2.5 is supported with funkload > 1.6.0
39
40 * python distutils, on a Debian system::
41
42     sudo apt-get install python-dev
43
44 * python xml, for example on a Debian system::
45
46     sudo apt-get install python-xml
47
48 * EasyInstall_, download ez_setup.py_, and run it::
49
50     cd /tmp
51     wget http://peak.telecommunity.com/dist/ez_setup.py
52     sudo python ez_setup.py
53
54   This will download and install the appropriate setuptools egg for your
55   Python version.
56
57
58 Optional packages
59 -----------------
60
61 * To produce charts : python-gdchart (0.6.1-8 is fine), on Debian::
62
63     sudo apt-get install python-gdchart
64
65   If the package is only available for python2.3 you may try to copy the
66   ``gdchart.so`` to the ``python2.4/site-pacakges``.
67
68   On non Debian systems you can build the gdchart following the
69   `Francois Meehan`_'s page.
70
71   On Fedora FC4 (tested with python 2.3.5)::
72
73     cd /tmp
74     wget http://ftp.debian.org/debian/pool/main/p/python-gdchart/python-gdchart_0.6.1.orig.tar.gz
75     tar xzvf python-gdchart_0.6.1.orig.tar.gz
76     cd python-gdchart-0.6.1.orig/
77     wget http://funkload.nuxeo.org/patch_gdc_py.diff
78     wget http://funkload.nuxeo.org/patch_gdc_pie.diff
79     patch -p0 < patch_gdc_py.diff
80     patch -p0 < patch_gdc_pie.diff
81     # change in Makefile
82     # PY_INCLUDE = -I/usr/local/include/python2.0
83     # to your corresponding path
84     make
85     # as a 'root' copy produced gdchart.so into your python's site-packages
86     # directory
87
88
89   Should work also for Fedora FC5, it requires libpng-devel and libjpeg-dev.
90
91   No idea under windows.
92
93   NOTE that latest snapshot 1.8.0x works with python-gdchart2 which is
94   available on many unices.
95
96
97 * The recorder use TCPWatch_ which is not yet available using easy_install::
98
99     cd /tmp
100     wget http://hathawaymix.org/Software/TCPWatch/tcpwatch-1.3.tar.gz
101     tar xzvf tcpwatch-1.3.tar.gz
102     cd tcpwatch
103     python setup.py build
104     sudo python setup.py install
105
106
107 Installation
108 ------------
109
110 Easy installation
111 ~~~~~~~~~~~~~~~~~
112
113 Install the latest stable package::
114
115   sudo easy_install -U funkload
116
117 This will install FunkLoad_, webunit_ and docutils_ eggs.
118
119
120 Latest snapshot version
121 ~~~~~~~~~~~~~~~~~~~~~~~~
122
123 Install the latest development snapshot available::
124
125   sudo easy_install -f http://funkload.nuxeo.org/snapshots/ -U funkload
126
127
128
129 Development version
130 ~~~~~~~~~~~~~~~~~~~
131
132 If you want to try the latest unstable sources from svn ::
133
134     easy_install -eb /tmp funkload==dev
135
136 or::
137
138     svn co http://svn.nuxeo.org/pub/funkload/trunk /tmp/funkload
139
140 then::
141
142     cd /tmp/funkload/
143     python setup.py build
144     sudo python setup.py install
145
146
147 Test it
148 -------
149
150 Install the FunkLoad_ examples::
151
152   fl-install-demo
153
154 Go to the demo/xmlrpc folder then::
155
156   cd funkload-demo/xmlrpc/
157   make test
158
159 To test benching and report building just::
160
161   make bench
162
163 See ``funkload-demo/README`` for others examples.
164
165
166
167 Problems ?
168 ----------
169
170 * got a ::
171
172     error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)
173
174   Install python2.4-dev package.
175
176 * easy_install complains about conflict::
177
178     ...
179     /usr/lib/site-python/docutils
180
181     Note: you can attempt this installation again with EasyInstall, and use
182     either the --delete-conflicting (-D) option or the
183     --ignore-conflicts-at-my-risk option, to either delete the above files
184     and directories, or to ignore the conflicts, respectively.  Note that if
185     you ignore the conflicts, the installed package(s) may not work.
186     -------------------------------------------------------------------------
187     error: Installation aborted due to conflicts
188
189
190   If FunkLoad_, webunit_ or docutils_ were previously installed without
191   using EasyInstall_.  You need to reinstall the package that raises the
192   conflict with the ``--delete-conflicting`` option, see easy_install_
193   documentation.
194
195 * If you still have conflict try to remove FunkLoad_ from your system::
196
197     easy_install -m funkload
198     rm -rf /usr/lib/python2.3/site-packages/funkload*
199     rm -rf /usr/local/funkload/
200     rm /usr/local/bin/fl-*
201     rm /usr/bin/fl-*
202
203   then reinstall
204
205 * easy_install ends with::
206
207     error: Unexpected HTML page found at
208     http://prdownloads.sourceforge.net...
209
210   Source Forge has changed their donwload page you need to update your
211   setuptools::
212
213      sudo easy_install -U setuptools
214
215 * Failed to install docutils 0.4 with easy_install 0.6a9 getting a::
216
217     ...
218     Best match: docutils 0.4
219     Downloading http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?download
220     Requesting redirect to (randomly selected) 'mesh' mirror
221     error: No META HTTP-EQUIV="refresh" found in Sourceforge page at http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?use_mirror=mesh
222
223  It looks like sourceforge change their download page again :(
224
225  - download manually the docutils tar gz from
226    http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?download
227  - then ``sudo easy_install /path/to/docutils-0.4.tar.gz``
228
229
230
231 * When testing ``make test`` return ::
232
233     ### credentialctl: Stopping credential server.
234     python: can't open file '/usr/lib/python2.4/site-packages/funkload-1.2.0-py2.4.egg/funkload/credentialctl.py': [Errno 20] Not a directory
235
236   Starting with FunkLoad_ 1.2.0 scripts are installed in /usr/bin, previously
237   they were in /usr/local/bin, you need to remove them::
238
239     sudo rm /usr/local/bin/fl-*
240
241
242 * No charts on your report. You need to have gdchart python module check
243   ``import gdchart``. See the `Optional packages`_ for help on how to
244   install gdchart.
245
246
247 * While building report you Got ::
248
249    File "/usr/bin/fl-build-report", line 25, in ?
250    File "build/bdist.linux-i686/egg/funkload/ReportBuilder.py", line 216, in main
251    File "build/bdist.linux-i686/egg/funkload/ReportRenderer.py", line 612, in render
252    File "build/bdist.linux-i686/egg/funkload/ReportRenderer.py", line 635, in createCharts
253    File "build/bdist.linux-i686/egg/funkload/ReportRenderer.py", line 869, in createMonitorCharts
254    File "build/bdist.linux-i686/egg/funkload/ReportRenderer.py", line 938, in createMonitorChart
255    AttributeError: 'module' object has no attribute 'option'
256
257  python-gdchart2 is installed on your system and FunkLoad_ expects
258  python-gdchart. Hopefully you can give a try to the latest snapshot
259  (>=1.8.0a see section above) that is working with python-gdchart2.
260
261
262 --------------------------
263
264 See README_ for more information about FunkLoad_.
265
266 See CHANGES_ for information on FunkLoad_ packages.
267
268 See demo_ folder for other examples.
269
270
271 .. _FunkLoad: http://funkload.nuxeo.org/
272 .. _webunit: http://mechanicalcat.net/tech/webunit/
273 .. _README: README.html
274 .. _CHANGES: CHANGES.html
275 .. _demo: http://svn.nuxeo.org/trac/pub/browser/funkload/trunk/funkload/demo/
276 .. _EasyInstall: http://peak.telecommunity.com/DevCenter/EasyInstall
277 .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall#command-line-options
278 .. _ez_setup.py: http://peak.telecommunity.com/dist/ez_setup.py
279 .. _docutils: http://docutils.sourceforge.net/
280 .. _TCPWatch: http://hathawaymix.org/Software/TCPWatch/
281 .. _`Francois Meehan`: http://moinmoin.wikiwikiweb.de/FrancoisMeehan
282
283
284 .. Local Variables:
285 .. mode: rst
286 .. End:
287 .. vim: set filetype=rst:
Note: See TracBrowser for help on using the browser.