Installation » History » Version 2
Elmer de Looff, 2012-06-05 12:15
added MySQLdb package
1 | 1 | Elmer de Looff | h1. Installation |
---|---|---|---|
2 | 1 | Elmer de Looff | |
3 | 1 | Elmer de Looff | µWeb is developed on, and intended primarily to run on Debian Linux. For now, these instructions will cater to that operating system mainly. |
4 | 1 | Elmer de Looff | |
5 | 1 | Elmer de Looff | h2. Packages |
6 | 1 | Elmer de Looff | |
7 | 1 | Elmer de Looff | µWeb requires the following packages to be present |
8 | 1 | Elmer de Looff | |
9 | 1 | Elmer de Looff | * @python-decorator@ |
10 | 1 | Elmer de Looff | * @python-lockfile@ |
11 | 2 | Elmer de Looff | * @python-mysqldb@ |
12 | 1 | Elmer de Looff | * @python-openid@ |
13 | 1 | Elmer de Looff | * @python-simplejson@ |
14 | 1 | Elmer de Looff | * @python-tz@ |
15 | 1 | Elmer de Looff | |
16 | 1 | Elmer de Looff | Installing these can be done using @apt@, as follows: |
17 | 1 | Elmer de Looff | |
18 | 1 | Elmer de Looff | <pre><code class="bash"> |
19 | 2 | Elmer de Looff | sudo apt-get install python-decorator python-lockfile python-mysqldb python-openid python-simplejson python-tz |
20 | 1 | Elmer de Looff | </code></pre> |
21 | 1 | Elmer de Looff | |
22 | 1 | Elmer de Looff | h2. Python path |
23 | 1 | Elmer de Looff | |
24 | 1 | Elmer de Looff | The installation directory of µWeb should be included in the @PYTHONPATH@. For instance, if µWeb is installed in the directory @'/home/bob/development/uweb'@, the directory @'/home/bob/development'@ should be added to the @PYTHONPATH@ environment variable. |
25 | 1 | Elmer de Looff | |
26 | 1 | Elmer de Looff | This can be achieved by adding the following to your @.bashrc@: |
27 | 1 | Elmer de Looff | <pre><code class="bash"> |
28 | 1 | Elmer de Looff | export PYTHONPATH="$PYTHONPATH:/home/bob/development" |
29 | 1 | Elmer de Looff | </code></pre> |