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 10-20-2004, 09:55 PM   #1
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Rep: Reputation: 15
GTK+2.5.0 and Pango 1.4.1 linkage problems....


Damn damn...

I had no problems with Pango and GTK+ in SuSE 8.1, but than I thought i should get my self the SuSE 9.1... donīt ask why!

Anyway, it doesn't matter if I so use GTK+2.5.x or 2.4.x still the same problem, this with "Can't link Pango, pango is needed to build!" some thing like that.. Though I know I can't install pango-1.2 because it gives errors... something with FreeType2.

But that's not my problem now!

The problem is that I NEED gtk+2.4 or higher to run some applications. I know the libpang* files exists.. but why can't it link... have searched the internet, but haven't find any answers that could help me
 
Old 10-20-2004, 10:45 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
give us the actual error output be it for configure or make or whatever.
along with what's installed gtk+/pango from packages or whatever and what's being self compiled
 
Old 10-21-2004, 12:34 AM   #3
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
may have to set the enviromental variables to point to the binaries?
 
Old 10-21-2004, 09:37 AM   #4
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Original Poster
Rep: Reputation: 15
Here comes the error output when Im doing the configure
Code:
checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-Wl,--export-dynamic -L/usr/local/lib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org
I have seen others have the same problem... but how the hell are Im suppose to solve this, i have:
- GTK+2.5.0 , source. BIG PROBLEMS...
- Glib 2.4.7, source. No problems installing
- Pango 1.4.1 , source. No problems installing
- Atk 1.0.1, source. No problems installing

Last edited by SyBEX; 10-21-2004 at 09:42 AM.
 
Old 10-21-2004, 11:20 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
This is worth reading particularly the stuff about compile flags and PKG_CONFIG_PATH variables. My guess is you installed glib-2.4 in /usr/local (that's the default location) but compiled and linked pango against the glib-2.2 you already had installed in /usr. I would suggest you set these varibles before you compile pango-1.6, atk-1.8 and gtk-2.4. If you close the shell it will forget so reset these before you carry on or you will link against the wrong libraries again.

export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L//usr/local/lib"

An alternative is to ./configure --prefix=/usr but the risk is that if you install over the libraries you have there already you will break a lot of things and end up having to reinstall everything. Avoid the gtk-2.5 series - it's the unstable development series.
 
Old 10-21-2004, 04:51 PM   #6
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Original Poster
Rep: Reputation: 15
Mmmkay..

Now I installed glib2 in /usr/local, but then when im on my way to install pango, i can't find glib2.

Why, because pkgconfig search in /usr/lib/pkgconfig after the glib-2.0.pc file, not in /usr/local/lib/pkgconfig.

How tha hell can I get this to work.. damn I had no problems with it on the SUSE 8.1, but large problems in 9.1 even if I do it exactly the same way as in 8.1.

garghr ... what to do... It makes me Insane soon ...
 
Old 10-21-2004, 08:00 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
So does that mean there's no glib-2.0.pc file in /usr/local/lib/pkgconfig? Perhaps you didn't install glib-2.4.7?
 
Old 10-21-2004, 08:50 PM   #8
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Andrew Benton
So does that mean there's no glib-2.0.pc file in /usr/local/lib/pkgconfig? Perhaps you didn't install glib-2.4.7?
The thing is, there was a file in /usr/local/lib/pkgconfig, but the config script keept on seraching for the glib-2.0.pc file in /usr/lib, not in /usr/local/lib ..


Anyway, I got a bit tooo insane and now I try out an other dist. Let's see if I get the same problem now
 
Old 10-23-2004, 09:32 AM   #9
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Original Poster
Rep: Reputation: 15
Im not an expert on linux, can anyone tell me how I can solve this thing when I run ldconfig -v, I think thats why I can't install gtk+, because now ./configure works out just fine, but make gives errors on these files that ldconfig cannot stat

Code:
ldconfig: Cannot stat /opt/gnome/lib/libglib-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgsf-gnome-1.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgmodule-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgthread-2.0.so: No such file or directory
ldconfig: Cannot stat /opt/gnome/lib/libgobject-2.0.so: No such file or directory
 
Old 10-28-2004, 11:32 PM   #10
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
Are those files anywhere on your system? Do a search

find / -name filename

If there are somewhere on your system, then you may have to tell it to search in that path because it cannot find the libraries that it needs

edit your /etc/ld/so.conf file and place the path to those files - I think you said the path is /usr/local/lib/pkgconfig

After that type ldconfig to update the cache

Hope that helps

Shelton
Australia

Last edited by shazam75; 10-28-2004 at 11:33 PM.
 
Old 10-29-2004, 01:09 PM   #11
SyBEX
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23

Original Poster
Rep: Reputation: 15
I solved it.. The files existed, but they linked to wrong version number.. so I reinstalled the ones that I needed and now all is okey, except some weird thing with the sound... but that is an other thread!
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
Problems with Gtk and Pango elvalith Linux - Software 7 08-04-2005 05:12 AM
pango and gtk+ linuxienne Linux - Software 2 06-13-2005 08:09 AM
GTK install: Pango Problems Daddywags Linux - Software 9 04-27-2005 08:57 AM
Gtk+ and Pango problems rundjuling Linux - Software 8 05-17-2004 01:15 PM

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

All times are GMT -5. The time now is 11:05 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