GTK+ and rpm install and compile issues Mandrake 10.0
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
GTK+ and rpm install and compile issues Mandrake 10.0
I've been trying to compile some source-only programs I dled from sourceforge, and some required a newer version of GTK or when I tried to compile them claimed I didn't have GTK installed or something of the sort. An example of the errors I'm getting:
gtkpod install errors: (when running ./configure)
checking for gtk+-2.0 >= 2.4.0 gthread-2.0 >= 0.14.0 glib-2.0 > 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: ***
See `config.log' for more details.
I've tried copying gtk+-2.0.pc into the correct path, which is /usr/local/lib (I think). I used someone else's recommendation to export using a command like this: "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH", but I lost the post. Anyway, when I copied gtk+-2.0.pc, it said some gdk package - gdk-x11 followed by something, wasn't found.
I think it might be related to errors when make/make install ing GTK. I got these errors at the end of my make and make install for gtk 2.4.4:
"make" errors
lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/usr/local/lib
/usr/local/src/gtk+-2.4.4/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `g_unsetenv'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_find_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_completion_complete_utf8'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_param_spec_get_redirect_target'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_class_override_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_class_add_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_install_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_printf_escaped'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_value_take_string'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_vprintf_escaped'
/usr/local/lib/libpango-1.0.so: undefined reference to `g_unichar_get_mirror_char'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-2.4.4'
make: *** [all] Error 2
"make install" errors
/usr/local/src/gtk+-2.4.4/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `g_unsetenv'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_find_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_instance_get_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_completion_complete_utf8'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_param_spec_get_redirect_target'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_class_override_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_type_class_add_private'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_object_interface_install_property'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_printf_escaped'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_value_take_string'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_markup_vprintf_escaped'
/usr/local/lib/libpango-1.0.so: undefined reference to `g_unichar_get_mirror_char'
collect2: ld returned 1 exit status
make[3]: *** [gtk-query-immodules-2.0] Error 1
make[3]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/gtk+-2.4.4/gtk'
make: *** [install-recursive] Error 1
Since I was having so much trouble compiling my own source, I tried resorting to RPMs and used RPMDrake, but it consistently gives me errors even after I used the easy URPMI from urpmi dot org instructions (I don't have enough posts to post urls). Sometimes it will work flawlessly when installing few, simple programs, but when I tried installing, for example, font packages, it gives the error: "...retrieving failed. curl failed: exited with 56 or signal 0". Also, it always tells me the signatures are invalid or missing.
Another somewhat related issue is that when I download RPMs and run them, KDE does not recognize them as programs (when I use kappfinder). I don't know where they're installing, so I can't add them to my "start menu". This is probably a pretty simple problem, but are there any ideas on better ways to get KDE or something to recognize my programs?
I'm running Mandrake 10.0 on a dualboot with XP and using KDE.
"I've been trying to compile some source-only programs I dled from sourceforge, and some required a newer version of GTK or when I tried to compile them claimed I didn't have GTK installed or something of the sort"
gtk may not be installed. It may only be partially installed because your compile of gtk failed. It may be installed in a place different than where gcc is looking for it. The wrong location problem can occur when you install an rpm built for a distribution other than Mandrake 10.
"Another somewhat related issue is that when I download RPMs and run them, KDE does not recognize them as programs (when I use kappfinder). I don't know where they're installing, so I can't add them to my "start menu". This is probably a pretty simple problem, but are there any ideas on better ways to get KDE or something to recognize my programs?"
You can find out where rpm installed programs or any other file with:
rpm -ql packagename
so try:
rpm -ql gtk | less
and then check to see if the files are where rpm says they are. If they are not then do:
rpm --nodeps -e gtk
and keep repeating until rpm says gtk is not installed. Then find a gtk rpm that is for sure a Mandrake 10 rpm and try installing the rpm again.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
From my experience with Mandrake, it's impossible to compile something. Best route is to go urpmi and grab some old version since urpmi is outdated most of the time.
Just keep installing gtk packages until the compiling stops erroring. Read what packages are getting installed and which ones are getting removed.
Quote:
From my experience with Mandrake, it's impossible to compile something. Best route is to go urpmi and grab some old version since urpmi is outdated most of the time.
I disagree. I compiled many programs.
I never use RPM files from other people because their configuration for the RPM is not the same as mine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.