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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2004, 09:55 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Rep:
|
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 
|
|
|
10-20-2004, 10:45 PM
|
#2
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
10-21-2004, 12:34 AM
|
#3
|
Member
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296
Rep:
|
may have to set the enviromental variables to point to the binaries?
|
|
|
10-21-2004, 09:37 AM
|
#4
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Original Poster
Rep:
|
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.
|
|
|
10-21-2004, 11:20 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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.
|
|
|
10-21-2004, 04:51 PM
|
#6
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Original Poster
Rep:
|
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 ... 
|
|
|
10-21-2004, 08:00 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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?
|
|
|
10-21-2004, 08:50 PM
|
#8
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Original Poster
Rep:
|
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 
|
|
|
10-23-2004, 09:32 AM
|
#9
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Original Poster
Rep:
|
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
|
|
|
10-28-2004, 11:32 PM
|
#10
|
Member
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296
Rep:
|
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.
|
|
|
10-29-2004, 01:09 PM
|
#11
|
LQ Newbie
Registered: Oct 2004
Location: Sweden
Distribution: SUSE 9.1 Personal
Posts: 23
Original Poster
Rep:
|
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! 
|
|
|
All times are GMT -5. The time now is 04:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|