Project

General

Profile

Installation » History » Version 9

Jan Klopper, 2020-12-08 14:40

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 9 Jan Klopper
Or for the current master branch version:
18 1 Elmer de Looff
<pre><code class="bash">
19 9 Jan Klopper
pip install -e git+https://github.com/underdarknl/uweb3#egg=uweb3
20 3 Elmer de Looff
</code></pre>
21 9 Jan Klopper
22 9 Jan Klopper
This pulls in all the necessary requirements automatically and installs and configures them for you.
23 9 Jan Klopper
24 5 Elmer de Looff
25 5 Elmer de Looff
h1. Upgrading
26 5 Elmer de Looff
27 5 Elmer de Looff
The easiest way to upgrade µWeb to the latest release is to use @pip@ again:
28 5 Elmer de Looff
29 5 Elmer de Looff
<pre><code class="bash">
30 5 Elmer de Looff
sudo pip install --upgrade uweb
31 5 Elmer de Looff
</code></pre>
32 5 Elmer de Looff
33 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:
34 5 Elmer de Looff
35 5 Elmer de Looff
<pre><code class="bash">
36 1 Elmer de Looff
sudo pip uninstall uweb && sudo pip install uweb
37 6 Gerjan Klinkhamer
</code></pre>
38 6 Gerjan Klinkhamer
39 6 Gerjan Klinkhamer
h1. Installation on OS X 10.9
40 6 Gerjan Klinkhamer
41 6 Gerjan Klinkhamer
Install Homebrew (http://brew.sh) or update:
42 6 Gerjan Klinkhamer
43 6 Gerjan Klinkhamer
<pre><code class="bash">
44 6 Gerjan Klinkhamer
brew update
45 6 Gerjan Klinkhamer
</code></pre>
46 6 Gerjan Klinkhamer
47 6 Gerjan Klinkhamer
Run
48 6 Gerjan Klinkhamer
49 6 Gerjan Klinkhamer
<pre><code class="bash">
50 6 Gerjan Klinkhamer
brew doctor 
51 6 Gerjan Klinkhamer
</code></pre>
52 6 Gerjan Klinkhamer
53 6 Gerjan Klinkhamer
and fix any issues.
54 6 Gerjan Klinkhamer
55 7 Gerjan Klinkhamer
Install mySQL:
56 6 Gerjan Klinkhamer
57 6 Gerjan Klinkhamer
<pre><code class="bash">
58 7 Gerjan Klinkhamer
brew install mysql
59 6 Gerjan Klinkhamer
</code></pre>
60 6 Gerjan Klinkhamer
61 8 Gerjan Klinkhamer
Install @pip@:
62 6 Gerjan Klinkhamer
63 6 Gerjan Klinkhamer
<pre><code class="bash">
64 7 Gerjan Klinkhamer
sudo easy_install pip
65 6 Gerjan Klinkhamer
</code></pre>
66 6 Gerjan Klinkhamer
67 8 Gerjan Klinkhamer
Set flags prior to installing uWeb to prevent Clang error (see this page for further info: http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa):
68 6 Gerjan Klinkhamer
69 6 Gerjan Klinkhamer
<pre><code class="bash">
70 8 Gerjan Klinkhamer
export CFLAGS=-Qunused-arguments; export CPPFLAGS=-Qunused-arguments
71 6 Gerjan Klinkhamer
</code></pre>
72 6 Gerjan Klinkhamer
73 6 Gerjan Klinkhamer
Now install uWeb:
74 6 Gerjan Klinkhamer
75 6 Gerjan Klinkhamer
<pre><code class="bash">
76 6 Gerjan Klinkhamer
sudo -E pip install uweb
77 5 Elmer de Looff
</code></pre>