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 |
No one can help me? I wish i can get it working so i can compile programs to work with mandrake.
Garrett |
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. |
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. |
Hi :D
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 :D, I remember if you had downloaded a rpm package, you can run "urpmi xxxxx.rpm" and urpmi will install the dependencies for you too. |
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 |
Could you post the error output of ./configure? Maybe that'll help a bit more...
Cheers, matze |
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?
|
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. |
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 |
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. |
Looks like it's complaining that glibs version is 2.2.3 instead of the needed 2.4...
Cheers, matze |
The funny thing is i installed glib 2.4. this is odd.
Garrett |
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. |
where would i get the glib 2.4 in rpm form?
Garrett |
All times are GMT -5. The time now is 09:14 PM. |