Cannot compile mysql-workbench
Hi,
I'm using Slackware 13.37 x64 (upgraded to slackware-current) and I have trouble compiling mysql workbench 5.2.34. The error is: Code:
scintilla-marshal.c:2:25: fatal error: glib-object.h: No such file or directory Code:
$ locate glib-object.h Code:
./PlatGTK.cxx:13:21: fatal error: gdk/gdk.h: No such file or directory Code:
$ locate gdk.h Thanks! |
Try
Quote:
|
The grep command gives me:
Code:
2:#include <glib-object.h> Code:
#include </usr/include/glib-2.0/glib-object.h> Code:
In file included from scintilla-marshal.c:2:0: Code:
$ locate gbinding.h |
I've never done anything with mysql, but I'm guessing you probably need gtk-2.x. It doesn't seem to like glib headers. Try reading up on compile time dependencies (different from run-time dependencies often) and make sure you have not configured it --with-something-you-haven't-got
|
I have a feeling I had this same problem and traced it to having AlienBob's Multilib GCC installed, I "upgraded" these back to the originals and then the compilation completed, once the package was installed I re-installed the multilib compilers. The package works fine, if you need I can upload a copy somewhere
|
Are you using the SlackBuilds.org?
Or, if not, maybe one of these might be missing? Code:
From SlackBuilds.org http://slackbuilds.org/repository/13...workbench-gpl/ |
Yes, I always use the script from slackbuild.org. Actually, I had some similar problem compiling the libglademm, but then I downloaded the tgz package and installed it successfully.
I also have the multilib gccs from AliebBob installed. Will try later today without them to see how it goes. |
I'm not sure exactly when the light popped on in my head but I finally noticed that "This requires blah, blah, blah" in SlackBuilds.org packages are in the order that you need to build and install them (I'd been building things in alphabetic order -- just because -- and kept having problems that got fixed by simply doing them in the order presented). Yeah, there's probably some note somewhere that tells you that but I have a bad habit of just jumping in and going for it that's been difficult for me to break.
I'd been thinking of trying MySQL Workbench for some time and your post triggered me to finally jump in and build the package and, step-by-step, I did that with no problems. I did choose wxGTK rather than wxPython (you have to choose one or the other; there's a note about interference between the two). This in straight-stock Slackware 13.37 64-bit (and sometime today I'm going to build in Slackware 13.37 32-bit on the machine I mainly use as a MySQL -- and PostgreSQL, too -- data base server). When I say straight-stock I mean a full install and the only thing I add is jdk from the extra directory on the DVD and any patches as they become available; the rest is, oh, src2pkg, VirtualBox, a few SlackBuilds here and there, LibreOffice.org (now, instead of OpenOffice.org) and that's pretty much that. Anyway, this worked for me. Hope this helps some. |
@zeroberto
Are you using multilib by any chance ? Regards Lawrence |
Yes, I'm using multilib. Yesterday I installed back the gcc from DVD, but I got the same errors. Then I installed the multilib gcc again, and I was able to compile the libglademm, but I got some different error at building the mysql workbench packages. I don't remeber exactly, but it was something about libstdc++. Then I uninstalled all the compat32 packages, and I managed to brake the whole OS, so I had to reinstall it. Then on the newly installed Slackware64 (without the multilib and any other installed packages) I installed the required libraries that I built earlier but I got the same gdk error when I tried to compile the mysql workbench.
|
Oh dear, doesn't sound like you're having much fun with this. I remember having similar problems but managed to compile it somehow, anyway heres a link to the slackpkg I used. If you have all the requirements installed you should be able to just install this pkg and then it will work (hopefully) if not it's simple to uninstall. Good luck.
http://dl.dropbox.com/u/31226650/mys...6_64-2_SBo.tgz |
Thanks tdos20, it works! It was complaining about missing libatkmm, but I installed it and it's ok now.
|
No problem, it's quite a handy app to have if you use MySQL, can be a little buggy though so watch out.
|
All times are GMT -5. The time now is 03:29 AM. |