LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-31-2011, 08:59 AM   #1
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Distribution: Slackware-current
Posts: 39

Rep: Reputation: 1
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
But I have that glib-object.h file:

Code:
$ locate glib-object.h
/usr/include/glib-2.0/glib-object.h
This is when I try to compile version 5.2.27:

Code:
./PlatGTK.cxx:13:21: fatal error: gdk/gdk.h: No such file or directory
Code:
$ locate gdk.h
/usr/include/gtk-1.2/gdk/gdk.h
/usr/include/gtk-2.0/gdk/gdk.h
Any suggestion?
Thanks!
 
Old 05-31-2011, 09:46 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,369

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
Try
Quote:
grep -n include /path/to/scintilla-marshal.c
That should show you exactly what it's looking for. As for the 5.2.27 error, gtk-1.2.x & gtk-2.x are not compatible and you may need both. gtk-2.x is certainly taking over.
 
Old 05-31-2011, 10:32 AM   #3
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Distribution: Slackware-current
Posts: 39

Original Poster
Rep: Reputation: 1
The grep command gives me:
Code:
2:#include      <glib-object.h>
If I replace that with:

Code:
#include      </usr/include/glib-2.0/glib-object.h>
Then I get:

Code:
In file included from scintilla-marshal.c:2:0:
/usr/include/glib-2.0/glib-object.h:25:37: fatal error: gobject/gbinding.h: No such file or directory
Code:
$ locate gbinding.h
/usr/include/glib-2.0/gobject/gbinding.h
 
Old 06-01-2011, 03:04 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,369

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
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
 
Old 06-01-2011, 08:55 AM   #5
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 103

Rep: Reputation: 29
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
 
Old 06-01-2011, 10:07 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,042

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
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/

This requires libsigc++, glibmm, cairomm, pangomm, gtkmm, libglademm,
ORBit2, GConf, libbonobo, gnome-mime-data, gnome-vfs, libgnome, wxGTK
or wxPython, lua.
Hope this helps some.
 
Old 06-01-2011, 11:30 PM   #7
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Distribution: Slackware-current
Posts: 39

Original Poster
Rep: Reputation: 1
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.
 
Old 06-02-2011, 07:29 AM   #8
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,042

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
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.
 
Old 06-02-2011, 10:18 AM   #9
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 193

Rep: Reputation: 6
@zeroberto

Are you using multilib by any chance ?

Regards

Lawrence
 
Old 06-03-2011, 12:14 AM   #10
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Distribution: Slackware-current
Posts: 39

Original Poster
Rep: Reputation: 1
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.
 
Old 06-03-2011, 04:35 AM   #11
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 103

Rep: Reputation: 29
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
 
Old 06-03-2011, 06:01 AM   #12
zeroberto
Member
 
Registered: Aug 2008
Location: Serbia
Distribution: Slackware-current
Posts: 39

Original Poster
Rep: Reputation: 1
Thanks tdos20, it works! It was complaining about missing libatkmm, but I installed it and it's ok now.
 
Old 06-03-2011, 06:13 AM   #13
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 103

Rep: Reputation: 29
No problem, it's quite a handy app to have if you use MySQL, can be a little buggy though so watch out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql workbench exploding upon build ninja master Linux - Software 1 07-28-2010 01:33 PM
MySql - mysql-workbench problem tamtam Slackware 1 07-27-2010 11:52 AM
MySQL Workbench for RedHat zeroquaranta Linux - Server 6 03-01-2010 02:49 AM
LXer: Visual MySQL Database Design in MySQL Workbench LXer Syndicated Linux News 0 06-12-2008 07:00 PM
MySQL Workbench grahamtysall Linux - General 1 07-27-2007 03:30 PM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration