To build MySQL Workbench one would need to install dependencies, fetch source code, configure it and actually do a build.
Note: On a Core2 Quad 2.4 GHz and a 4G of RAM it takes about 30-40 minutes to build Workbench. Also it uses about 4.2G of hdd space to build.
Here are steps to build Workbench on Ubuntu/Debian:
1) install deps. It is better to use terminal. The command to install deps is below:
sudo apt-get install build-essential autoconf automake libtool libzip-dev libxml2-dev libsigc++-2.0-dev libglade2-dev libgtkmm-2.4-dev libglu1-mesa-dev libmysqlclient15-dev uuid-dev liblua5.1-dev libpcre3-dev g++ libglade2-dev libgnome2-dev python-pexpect libboost-dev libsqlite3-dev python-dev libgnome-keyring-dev libctemplate-dev
2) Get source code from http://www.mysql.com/downloads/workbench/
3) unpack downloaded archive and run autogen.sh from the unpacked directory. The actual invocation may vary, for example:
–prefix tells configuration utility that install of Workbench should be done using the pivot directory.
Upon successful completion ./autogen.sh should generate Makefiles.
4) Build the tool.
That is simply make. If you have more than one core the you may like to use parallel build. For example, on a 4 cores box it is advised to use make -j5 install, on 2 cores – make -j3 install.
When built and installed, the directory which contains source files can be deleted.
UPD: to apply patch, get in the source directory and do patch -p0 < 5.2.35-ubuntu_11_10_compile_fix.patch