Installation » History » Version 5
Elmer de Looff, 2013-03-21 16:05
upgrading
1 | 3 | Elmer de Looff | µWeb is developed on, and intended primarily to run on Debian GNU-Linux. As such, installation instructions will focus on getting µWeb running on that family of platforms |
---|---|---|---|
2 | 3 | Elmer de Looff | |
3 | 1 | Elmer de Looff | h1. Installation |
4 | 1 | Elmer de Looff | |
5 | 4 | Elmer de Looff | The easiest way to install µWeb is to get it from the Python Package Index (https://pypi.python.org/pypi/uWeb). For most Linux there is a commandline application @pip@ which facilitaties easy installation of packages from the Package Index. To begin, install @pip@ on Debian: |
6 | 1 | Elmer de Looff | |
7 | 3 | Elmer de Looff | <pre><code class="bash"> |
8 | 3 | Elmer de Looff | sudo apt-get install python-pip |
9 | 3 | Elmer de Looff | </code></pre> |
10 | 1 | Elmer de Looff | |
11 | 3 | Elmer de Looff | After this, µWeb can be installed with the following command: |
12 | 1 | Elmer de Looff | |
13 | 1 | Elmer de Looff | <pre><code class="bash"> |
14 | 3 | Elmer de Looff | sudo pip install uweb |
15 | 1 | Elmer de Looff | </code></pre> |
16 | 1 | Elmer de Looff | |
17 | 3 | Elmer de Looff | This pulls in all the necessary requirements automatically and installs and configures them for you. |
18 | 1 | Elmer de Looff | |
19 | 3 | Elmer de Looff | h2. MySQL support |
20 | 1 | Elmer de Looff | |
21 | 3 | Elmer de Looff | µWeb requires a MySQL connector binary, which @pip@ will attempt to compile from source for you. If this is undesired (because it requires development headers for MySQL and Python, and some other packages), this MySQL requirement can be fulfilled by installing that package separately: |
22 | 3 | Elmer de Looff | |
23 | 1 | Elmer de Looff | <pre><code class="bash"> |
24 | 3 | Elmer de Looff | sudo apt-get install python-mysqldb |
25 | 1 | Elmer de Looff | </code></pre> |
26 | 5 | Elmer de Looff | |
27 | 5 | Elmer de Looff | h1. Upgrading |
28 | 5 | Elmer de Looff | |
29 | 5 | Elmer de Looff | The easiest way to upgrade µWeb to the latest release is to use @pip@ again: |
30 | 5 | Elmer de Looff | |
31 | 5 | Elmer de Looff | <pre><code class="bash"> |
32 | 5 | Elmer de Looff | sudo pip install --upgrade uweb |
33 | 5 | Elmer de Looff | </code></pre> |
34 | 5 | Elmer de Looff | |
35 | 5 | Elmer de Looff | This will also automatically update all dependencies of µWeb if they have changed. If you run into missing dependencies for the MySQL connector (as explained in the section above, _MySQL support_), the easiest way to perform the upgrade is to remove and reinstall in one go: |
36 | 5 | Elmer de Looff | |
37 | 5 | Elmer de Looff | <pre><code class="bash"> |
38 | 5 | Elmer de Looff | sudo pip uninstall uweb && sudo pip install uweb |
39 | 5 | Elmer de Looff | </code></pre> |