Compiling MySQL Workbench on Gentoo
The Workbench team have just announced the release of Workbench for Linux, including binary packages and source packages with instructions on how to build.
I’m a Gentoo Linux user, so I prefer building from source, and you’ll need to emerge the following packages (and note the USE) requirement as part of the source build process:
# USE="svg" emerge libzip libxml2 libsigc++ \
libglade libgtksourceviewmm media-libs/glut mysql lua \
ossp-uuid libpcre libgnome gtk+ pango cairo
Depending on your config and platform, you may need to bypass some package masking by adding the packages to your /etc/portage/package.keywords file.
Then download and install the ctemplate library from google code page. The current Gentoo version is 0.90, and you really should install the 0.91 version.
With the required packages and libraries in place, download the Workbench sources and then build:
# cd mysql-workbench-5.1.4alpha # ./autogen.sh # make # make install
That should build and install MySQL Workbench for you.
Just to confirm, here’s a screenshot of the built Workbench running on Gentoo Linux and displaying to my Mac OS X-based desktop.

Yeah good luck with all that
I had to manually build MySQL 5.1 using a custom ebuild package, even though Gentoo has 5.1 ebuilds (though they are WILDLY out of date). I used to be a Gentoo fan but their lack of quality control and uniformity has me thinking that it can never compete with any of the heavy hitters (Ubuntu, Red-Hat, etc.). Not until they develop a clear vision, clear process, and cleanup all the cruft that has been collecting over time.
You *really* want to use /etc/portage/package.use instead of USE=”…” so the value is not lost on subsequent updates.
Here is my experience:
1) I had a conflict with glut and freeglut- unmerged both and re-emerged and that was fine.
2) I was missing glitz on my system- I had to emerge glitz and also re-emerge cairo with the “glitz” USE flag set.
3) For some strange reason the Makefile ./backend/grtui/Makefile
gave me errors like undefined reference to `pcre_free_substring’ so I had to add -lpcre to the Makefile BOXTEXT_LDADD definition.
After that I was finally able to build- it fired up to the main screen, now I will play with it…
Thanks!