LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2005, 10:37 AM   #1
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Rep: Reputation: 15
Trouble compiling Bluefish


Hi!
I'm trying to compile bluefish because there were no working rpm for me, but I get a strange error.
Code:
linux:/home/zth/bluefish-0.13 # ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for strerror in -lcposix... no
checking for inline... inline
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0... no
configure: error: libgtk2.0-dev missing please install libgtk2.0-dev
The thing is that I've got gtk2, gtk, and all those packages installed, and I've got all the devels installed to. I can't find any specific libgtk2.0-dev on any site. Help please
 
Old 01-05-2005, 11:26 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"The thing is that I've got gtk2, gtk, and all those packages installed, and I've got all the devels installed to. I can't find any specific libgtk2.0-dev on any site. Help please"

I have bluefish installed. I listed the bluefish dependencies with:
rpm -qR bluefish
and got:
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
libORBit-2.so.0
libaspell.so.15
libatk-1.0.so.0
libbonobo-activation.so.4
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3)
libc.so.6(GLIBC_2.3.4)
libdl.so.2
libgdk-x11-2.0.so.0
libgdk_pixbuf-2.0.so.0
libglib-2.0.so.0
libgmodule-2.0.so.0
libgnomevfs-2.so.0
libgobject-2.0.so.0
libgthread-2.0.so.0
libgtk-x11-2.0.so.0
libm.so.6
libpango-1.0.so.0
libpangox-1.0.so.0
libpangoxft-1.0.so.0
libpcre.so.0
libpthread.so.0
libpthread.so.0(GLIBC_2.0)
librt.so.1
rpmlib(PayloadIsBzip2) <= 3.0.5-1

The closest filename that I see to the error message is libgtk-x11-2.0.so.0 which is provided by the package gtk2-devel.

--------------------------------
Steve Stites
 
Old 01-05-2005, 01:02 PM   #3
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Still don't work! I get furious at this shit! I HAVE GtK2-DEVEL, WHY DOESN'T IT WORK?!?!?
 
Old 01-05-2005, 03:20 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
did you look at config.log?

and you have to give a little more info if you wan't info back.

distro?
version of gtk2 installed?
where is it located?
do you have gtk+-2.0.pc (search for it in /usr/lib/pkgconfig or wherever the prefix is for gtk2)?
 
Old 01-05-2005, 03:55 PM   #5
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
I got the apt-get for SuSE working now, and I tried apt-get install libgtk2.0-dev but it didn't find anything. Yes, I ran apt-get update before.

Distro: Suse
GTK2: 2.4.0-9
location: /opt/gnome and various dirs
the dir /usr/lib/pkconfig exists but contains nothing.
 
Old 01-05-2005, 03:58 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
ok as root run:

updatedb

then:

slocate gtk+-2.0.pc

What we are looking for is the root of the gtk2 installation so we can set up the paths for configure to find it.

for example if gtk2 is installed into /opt/lib (check /opt/lib/pkgconfig for the pc file) then we need to tell configure to look there instead of its normal paths (/usr/ /usr/local)
 
Old 01-05-2005, 04:09 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
by the way,

there are some Suse bluefish rpm's on the mirror sites (go to the bluefish homepage->download and choose a mirror ( i chose the CO mirror) and go to archives) so you might want to try those
 
Old 01-05-2005, 07:43 PM   #8
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
I did, they gave me even more deps.
 
Old 01-06-2005, 04:27 AM   #9
zenith_zth
Member
 
Registered: Oct 2004
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by __J
ok as root run:

updatedb

then:

slocate gtk+-2.0.pc

What we are looking for is the root of the gtk2 installation so we can set up the paths for configure to find it.

for example if gtk2 is installed into /opt/lib (check /opt/lib/pkgconfig for the pc file) then we need to tell configure to look there instead of its normal paths (/usr/ /usr/local)
None of those commands worked.
 
Old 01-06-2005, 05:50 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Well,

theres not many places gtk2 can be. I'd look in either /usr/lib/pkgconfig /usr/local/lib/pkgconfig or if you think some libs are installed in /opt look in /opt/lib/pkgconfig for the file gtk+-2.0.pc.

If this package is not on your system anywhere (and theres no reason it shouldn't be with gtk and gtk-devel installed) you will not be able to compile anything that depends on gtk2.

If you do find this file, you need to set you pkg_config_path to point to it like this:
===========================================

(assuming it is installed in /usr/local/lib/pkgconfig for example)

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

===========================================

the above command sets /usr/local/lib/pkgconfig to the beginning of the search path for the program
pkg-config. If you cannot find the file anywhere, try to reinstall gtk-2 on your system
 
  


Reply



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
trouble compiling w/c++ eroica Linux - Software 4 03-09-2005 02:17 PM
bluefish: relocation error: bluefish: undefined symbol: gtk_file_chooser_di pymehta Linux - Software 3 02-05-2005 11:00 PM
trouble compiling fretbrner Slackware 1 01-31-2005 12:30 PM
Trouble compiling anything banZera Slackware 4 04-07-2004 10:19 AM
Trouble with compiling gamehack Debian 3 01-11-2004 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration