Linux Build Instructions

We are using the latest Ubuntu for development, so these build instructions apply to this distro (for now). This instruction is supposed to mention all steps and additional packages (based on a Ubuntu-desktop-default installation) needed to build a working copy of MySQL Workbench from our source packages. So lets start.

What development packages are required

First you’ll need to have these dev-libraries installed on your system:

– autoconf
– automake
– libtool
– libzip-dev
– libxml2-dev
– libsigc++-2.0-dev
– libglade2-dev
– libgtkmm-2.4-dev
– libgl1-mesa-dev
– libmysqlclient16-dev
– uuid-dev
– liblua5.1-dev
– libpcre3-dev
– g++
– libgnome2-dev
– libgtk2.0-dev
– libpango1.0-dev
– libcairo2-dev
– sqlite3-dev
– python-dev
– libboost-dev
– libctemplate-dev

Ubuntu’s package management system should be able to install that on a single command. Just pass the lib names to the apt-get install command (of course, you must have root privileges to install packages):

sudo apt-get install build-essential autoconf automake libtool libzip-dev libxml2-dev libsigc++-2.0-dev libglade2-dev libgtkmm-2.4-dev libgl1-mesa-dev libmysqlclient16-dev uuid-dev liblua5.1-dev libpcre3-dev g++ libgnome2-dev libgtk2.0-dev libpango1.0-dev libcairo2-dev sqlite3-dev python-dev libboost-dev libctemplate-dev

Fetch the sources

Download MySQL Workbench 5.2 Source Package from http://wb.mysql.com.

Build the packages

extract source package to a location of your choice (i.e. ~/workbench-src)

create output folder (optional)

i.e. ~/mysql-workbench

goto wb source base folder

start build configuration by running autogen

./autogen.sh

start building the packages by invoking the make command

make install DESTDIR=/home/<your_username>/mysql-workbench

you can use param -jX to improve build-speed by using multible build-threads (where X is the number of parallel threads to be used)

Starting it up

Inside the output directory you’l find the subdir usr/local/bin. change to that dir and run the startscript for MySQL Workbench 5.2 Linux:

./mysql_workbench

3 thoughts on “Linux Build Instructions”

  1. Hello,

    I tried to build MySQL workbench since there is no .deb package for i386 on download site, but have problems. I have downloaded the Linux architecture independent source code, I did not find any autogen.sh. In the folder there is a file by name of INSTALL, I followed those instructions but no success 🙁

  2. The INSTALL file after extracting “mysql-workbench-community-6.3.6-src.tar.gz” says to use the command below to install dependencies.
    sudo apt-get install build-essential cmake cmake-data autoconf automake pkg-config libtool libzip-dev libxml2-dev libsigc++-2.0-dev libglade2-dev libgtkmm-2.4-dev libglu1-mesa-dev libgl1-mesa-glx mesa-common-dev libmysqlclient-dev libmysqlcppconn-dev uuid-dev libpixman-1-dev libpcre3-dev libgnome2-dev libgnome-keyring-dev libgtk2.0-dev libpango1.0-dev libcairo2-dev python-dev libboost-dev libctemplate-dev mysql-client python-pysqlite2 libsqlite3-dev libtinyxml-dev swig libvsqlitepp-dev libgdal-dev libproj0

    Why is it different than the command you used above in yellow?

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.