LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-13-2004, 07:18 PM   #1
keflavich
LQ Newbie
 
Registered: Aug 2004
Location: Colorado
Distribution: FC5/6, Ubuntu Edgy
Posts: 9

Rep: Reputation: 0
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.

Any help appreciated.
Thanks,
Adam
 
Old 08-27-2004, 05:02 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"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.


---------------------------------
Steve Stites
 
Old 08-27-2004, 06:17 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
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: Reputation: 45
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.
 
Old 08-27-2004, 06:39 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Its trying to find devel files to compile the program. In the software installer or urpmi search for gtk. Select the devel packages for gtk.

Go to http://easyurpmi.zarb.org/ to get urpmi or other packages updated.

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.
 
  


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
Compile issues related to GTK, pkg-config Snivek Slackware 7 11-01-2005 10:28 AM
How to compile rpm in Mandrake 10 jagrom Linux - Newbie 2 09-04-2004 10:05 AM
Mandrake 9.2 RPM issues chrism_bradford Linux - Software 4 02-15-2004 07:41 AM
need compilers, other stuff to dl, compile from source or rpm binaries - Mandrake 9.1 Kristal Mandriva 6 09-02-2003 10:03 PM
2 issues regarding AfterStep RPM install Jongi Linux - Newbie 1 08-27-2003 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 AM.

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