µ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
Installation¶
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:
sudo apt-get install python-pip
After this, µWeb can be installed with the following command:
sudo pip install uweb
Or for the current master branch version:
pip install -e git+https://github.com/underdarknl/uweb3#egg=uweb3
This pulls in all the necessary requirements automatically and installs and configures them for you.
Upgrading¶
The easiest way to upgrade µWeb to the latest release is to use pip
again:
sudo pip install --upgrade uweb
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:
sudo pip uninstall uweb && sudo pip install uweb
Installation on OS X 10.9¶
Install Homebrew (http://brew.sh) or update:
brew update
Run
brew doctor
and fix any issues.
Install mySQL:
brew install mysql
Install pip
:
sudo easy_install pip
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):
export CFLAGS=-Qunused-arguments; export CPPFLAGS=-Qunused-arguments
Now install uWeb:
sudo -E pip install uweb