LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 04-11-2004, 01:41 AM   #1
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Rep: Reputation: 15
Compiling troubles


I am having compiling troubles. I swtiched from fedore to mandrake to see if this would help solve most of my problems and i am at the same situation as before. When i want to compile a program with ./configure i get an error mesage saying that i need the gtk+ installed in order for the program to be compiled. well when i installed mandrak 10, i had it install the devel packages so i can compile programs. i also see that the gtk and glibs etc are all installed. This is the same messages i was getting when i had fedora install. To be more specific, i wanted to comile gaim. But i get this message, i also want to be able to compile othe apps with out geting this message. Can someone steer me in teh right direction to help me set up my machine correctly so i can compile programs with out getting this problem? Thanks

Garrett
 
Old 04-11-2004, 10:52 PM   #2
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
No one can help me? I wish i can get it working so i can compile programs to work with mandrake.


Garrett
 
Old 04-12-2004, 12:27 AM   #3
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
You need to learn to look at the error message and determine what rpm to install or what additional packages need to be compiled first. The name of the rpm usually turns out to be what ./configure says isn't there with "-devel" on the end.

The situation you have is completely normal. It really isn't possible for Mandrake to install the header files and shared libraries for everything by default. People would complain about all the space wasted if they tried.

You could also try installing gaim from an rpm and worrying about getting all the development stuff later.

Last edited by doug_s; 04-12-2004 at 12:31 AM.
 
Old 04-12-2004, 01:07 AM   #4
Rory in Toronto
Member
 
Registered: Mar 2004
Posts: 136

Rep: Reputation: 15
I just can't agree with the above poster, as I had the exact same problem as the original poster when I tried to install the Mandrake Online Update app, of all things. You would think that if MDK wanted you to have that small MDK update app, they'd ensure the dependencies come pre-installed. So, you're not alone on this.

I got a similar GTK error. Pearl GTK 2 error, I think.

In console, I typed:
rpm -Uvh nameofpackage.rpm

It listed the specific dependencies I needed, which I couldn't find on the discs. I got them from rpmseek.com, in the end.

Let us know how it turns out.
 
Old 04-12-2004, 01:42 AM   #5
nnsg
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
Hi

How about install Gaim by running "urpmi gaim"? Or try to install Gaim in rpmdrake?

I remember there's gaim package on Mandrake CD, urpmi/rpmdrake will install all dependencies for you, what you need to do is just put in the CD.

Rory in Toronto, maybe you should try to use urpmi instead of rpm -Uvh? I'm not using Mandrake now, but I was , I remember if you had downloaded a rpm package, you can run "urpmi xxxxx.rpm" and urpmi will install the dependencies for you too.
 
Old 04-12-2004, 06:20 AM   #6
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
Here is my main problem and it is not just installing gaim, i got that all squared away. My main problem is when i want to try to compile any app, it complains that it can not find the gtk+ libs and for me to update the pkg-config so that it can find them. I have all of it installed and is located in my /usr/lib/pkgconfig folder. I tried doing the PKG_CONFIG_PATH and still no go. I just wanted to know if anyone had any suggestions to geting the pkg-config to see that i have the libs installed and that it can find them so i can compile any app that depends on them. Gaim was just an example app that i was having trouble with.


Garrett
 
Old 04-12-2004, 07:30 AM   #7
matze
Member
 
Registered: Oct 2003
Posts: 50

Rep: Reputation: 15
Could you post the error output of ./configure? Maybe that'll help a bit more...

Cheers,
matze
 
Old 04-12-2004, 07:32 AM   #8
nnsg
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
OK, are there any gtk+.pc/gtk+-2.0.pc in your /usr/lib/pkgconfig? And if so are the paths specify in the .pc file point to where the gtk files actually install?
 
Old 04-12-2004, 07:33 AM   #9
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
Could you cut and paste the actual error message here and give the name of the source file you're trying to compile ?

I have a fresh Mandrake 10.0 install with the development stuff here. When I get home from work tonight I'll try to duplicate your results.
 
Old 04-12-2004, 03:10 PM   #10
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
How do i check to see if the .pc files are pointing to the correct locations? How do i know what the correct locations are? i will do a ./configure and post the error output of it all. Ans yes the glib and gtk.pc files are in /usr/lib/pkgconfig.

Thank you all for helping me.


Garrett
 
Old 04-12-2004, 03:24 PM   #11
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
here is when i try to configure say the gtk+ source code.
I also tried configuring gaim .76 and it worked fine, i dont know if thats becuase i installed gaim from an rpm package or not. but when i configure anything from sourse i get that it cant find the libs and to adjust the pkconfig.

[garrett@localhost gtk+-2.4.0]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for native Win32... no
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
 
Old 04-12-2004, 03:31 PM   #12
matze
Member
 
Registered: Oct 2003
Posts: 50

Rep: Reputation: 15
Looks like it's complaining that glibs version is 2.2.3 instead of the needed 2.4...

Cheers,
matze
 
Old 04-12-2004, 03:56 PM   #13
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
The funny thing is i installed glib 2.4. this is odd.

Garrett
 
Old 04-12-2004, 04:16 PM   #14
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
Did you install glib 2.4 from source or from rpm ? If it's from source you may need to change your PATH and LD_LIBRARY_PATH.

Have you ever installed two versions of the same software before ? It can be a little tricky if you haven't.
 
Old 04-12-2004, 04:31 PM   #15
garretwp
Member
 
Registered: Jan 2004
Posts: 46

Original Poster
Rep: Reputation: 15
where would i get the glib 2.4 in rpm form?

Garrett
 
  


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
Troubles when compiling with IMLIB 1.9.14 sanmartin Linux - Software 14 04-22-2005 09:58 AM
Troubles compiling Cinelerra-1.2.1 Valhalla Linux - Software 11 01-17-2005 09:08 AM
Troubles compiling xfree86 4.4.0 Codegen Linux - Software 12 01-06-2005 10:29 AM
Troubles compiling 2.6.9 muppski Debian 8 11-11-2004 06:46 AM
compiling troubles Abe_the_Man Linux - Software 2 08-13-2004 02:29 PM


All times are GMT -5. The time now is 11:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration