Installation » History » Version 3
Version 2 (Elmer de Looff, 2012-06-05 12:15) → Version 3/9 (Elmer de Looff, 2013-03-20 15:24)
h1. Installation
µWeb is developed on, and intended primarily to run on Debian GNU-Linux. As such, installation Linux. For now, these instructions will focus on getting µWeb running on cater to that family of platforms operating system mainly.
h1. Installation h2. Packages
The easiest way to install µWeb is to get it from requires the Python Package Index (https://pypi.python.org). For most Linux there is a commandline application @pip@ which facilitaties easy installation of following packages from the Package Index. To begin, install @pip@ on Debian: to be present
<pre><code class="bash"> * @python-decorator@
sudo apt-get install python-pip * @python-lockfile@
</code></pre> * @python-mysqldb@
* @python-openid@
* @python-simplejson@
* @python-tz@
After this, µWeb Installing these can be installed with the following command: done using @apt@, as follows:
<pre><code class="bash">
sudo pip apt-get install uweb
python-decorator python-lockfile python-mysqldb python-openid python-simplejson python-tz
</code></pre>
This pulls in all the necessary requirements automatically and installs and configures them for you.
h2. MySQL support Python path
The installation directory of µWeb requires a MySQL connector binary, which @pip@ will attempt 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 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 the @PYTHONPATH@ environment variable.
This can be fulfilled achieved by installing that package separately:
adding the following to your @.bashrc@:
<pre><code class="bash">
sudo apt-get install python-mysqldb export PYTHONPATH="$PYTHONPATH:/home/bob/development"
</code></pre>
µWeb is developed on, and intended primarily to run on Debian GNU-Linux. As such, installation Linux. For now, these instructions will focus on getting µWeb running on cater to that family of platforms operating system mainly.
h1. Installation h2. Packages
The easiest way to install µWeb is to get it from requires the Python Package Index (https://pypi.python.org). For most Linux there is a commandline application @pip@ which facilitaties easy installation of following packages from the Package Index. To begin, install @pip@ on Debian: to be present
<pre><code class="bash"> * @python-decorator@
sudo apt-get install python-pip * @python-lockfile@
</code></pre> * @python-mysqldb@
* @python-openid@
* @python-simplejson@
* @python-tz@
After this, µWeb Installing these can be installed with the following command: done using @apt@, as follows:
<pre><code class="bash">
sudo pip apt-get install uweb
python-decorator python-lockfile python-mysqldb python-openid python-simplejson python-tz
</code></pre>
This pulls in all the necessary requirements automatically and installs and configures them for you.
h2. MySQL support Python path
The installation directory of µWeb requires a MySQL connector binary, which @pip@ will attempt 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 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 the @PYTHONPATH@ environment variable.
This can be fulfilled achieved by installing that package separately:
adding the following to your @.bashrc@:
<pre><code class="bash">
sudo apt-get install python-mysqldb export PYTHONPATH="$PYTHONPATH:/home/bob/development"
</code></pre>