LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-10-2006, 03:48 AM   #1
krkda
LQ Newbie
 
Registered: Jul 2004
Location: Central Coast, Australia
Distribution: Mandriva 2006
Posts: 12

Rep: Reputation: 0
major problems in compiling and installing rpms


Hi people,

I'm running mandriva 06 and I'm having god knows how many problems installing programs (be they compiled from source or installed from RPMs).

I think a lot of it is dependency failures. I'm having problems particularly with glib and gtk.

But anyway, first things first. When I try to compile mozilla from source, this is what happens:

Code:
[root@dg03 mozilla]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking for gawk... gawk
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for perl5... /usr/bin/perl5
checking for minimum required perl version >= 5.004... 5.008007
checking for full perl installation... yes
checking for doxygen... :
checking for whoami... /usr/bin/whoami
checking for autoconf... :
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for makedepend... /usr/X11R6/bin/makedepend
checking for xargs... /usr/bin/xargs
checking for gmake... /usr/bin/gmake
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether ld has archive extraction flags... yes
checking for 64-bit OS... no
checking for ANSI C header files... yes
checking for working const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for st_blksize in struct stat... yes
checking for siginfo_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int64... no
checking for uint... yes
checking for uint_t... no
checking for uint16_t... no
checking for uname.domainname... yes
checking for uname.__domainname... no
checking for usable wchar_t (2 bytes, unsigned)... no
checking for compiler -fshort-wchar option... yes
checking for .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/byteorder.h... no
checking for compat.h... no
checking for getopt.h... yes
checking for sys/bitypes.h... yes
checking for memory.h... yes
checking for unistd.h... yes
checking for gnu/libc-version.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for X11/XKBlib.h... yes
checking for sys/statvfs.h... yes
checking for sys/statfs.h... yes
checking for sys/vfs.h... yes
checking for sys/mount.h... yes
checking for mmintrin.h... no
checking for new... yes
checking for sys/cdefs.h... yes
checking for gethostbyname_r in -lc_r... no
checking for atan in -lm... yes
checking for dlopen in -ldl... yes
checking for dlfcn.h... yes
checking for socket in -lsocket... no
checking for XDrawLines in -lX11... yes
checking for XextAddDisplay in -lXext... yes
checking for XtFree in -lXt... yes
checking for XineramaIsActive in -lXinerama... yes
checking for X11/extensions/Xinerama.h... yes
checking for XShmCreateImage in -lXext... yes
checking for X11/extensions/XShm.h... yes
checking for XieFloGeometry in -lXIE... no
checking for X11/extensions/XIElib.h... no
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 6.1.0... yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... yes
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking for random... yes
checking for strerror... yes
checking for lchown... yes
checking for fchmod... yes
checking for snprintf... yes
checking for statvfs... yes
checking for memmove... yes
checking for rint... yes
checking for flockfile... yes
checking for getpagesize... yes
checking for localtime_r... yes
checking for strtok_r... yes
checking for wcrtomb... yes
checking for mbrtowc... yes
checking for res_ninit()... yes
checking for gnu_get_libc_version()... yes
checking for iconv in -lc... yes
checking for iconv()... yes
checking for iconv() with const input... no
checking for nl_langinfo and CODESET... yes
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking for C++ exceptions flag... -fno-exceptions
checking for gcc 3.0 ABI... yes
checking for C++ "explicit" keyword... yes
checking for C++ "typename" keyword... yes
checking for modern C++ template specialization syntax support... yes
checking whether partial template specialization works... yes
checking whether operators must be re-defined for templates derived from templates... no
checking whether we need to cast a derived template to pass as its base class... no
checking whether the compiler can resolve const ambiguities for templates... yes
checking whether the C++ "using" keyword can change access... yes
checking whether the C++ "using" keyword resolves ambiguity... yes
checking for "std::" namespace... yes
checking whether standard template operator!=() is ambiguous... unambiguous
checking for C++ reinterpret_cast... yes
checking for C++ dynamic_cast to void*... yes
checking whether C++ requires implementation of unused virtual methods... yes
checking for trouble comparing to zero near std::operator!=()... no
checking for LC_MESSAGES... yes
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found.
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
*** GTK+ is available from ftp://ftp.gtk.org/pub/gtk
configure: error: Test for GTK failed.
[root@dg03 mozilla]#
I think I already have GTK+ installed though. Heres what happend:
Code:
[root@dg03 main]# rpm -q gtk+
package gtk+ is not installed
[root@dg03 main]# rpm -q gtk+2.0-2.8.3-4mdk
gtk+2.0-2.8.3-4mdk
[root@dg03 main]#
I've been all over google and I've been following other peoples threads dealing with similar problems on mandriva for weeks now and I still can't get this thing going.

Mozilla is not the only program I've struck problems compiling though (xmms and gettext as a couple of examples) but first things first with mozilla and GTK+.

Can anybody tell me if I'm doing something wrong or not installed something right or if theres anymore information I should post?

Any help would be greatly appreciated.

Cheers
 
Old 02-10-2006, 04:09 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The package you are trying to install reguires gtk1 and not gtk2 (which you have). Install gtk1 (aka gtk+ or simply gtk) and its devel package. As for installing rpms, Mandriva has tool called urpmi for managing packages. You can install packages from online repositories and all dependencies are automatically resolved. To learn more about urpmi, go to zebulon.org.uk/ and for intructions on adding more sources go to http://easyurpmi.zarb.org. you need to setup the main, contrib, plf and updates repos.
 
Old 02-11-2006, 07:32 AM   #3
krkda
LQ Newbie
 
Registered: Jul 2004
Location: Central Coast, Australia
Distribution: Mandriva 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks a million for ur help with that reddaz. I managed to compile gtk+1.2 (somehow) and install that and then when I tried to recompile mozilla again, it failed with another dependency (libIDL of some version) but urmpi found and installed mozilla just fine in the end.

I think I'v got a much clearer picture to fix the rest for now hopefully. I can't thank you enough but your an absolute legend.

cheers
 
Old 02-11-2006, 07:42 AM   #4
monolegis
Member
 
Registered: Apr 2004
Location: Norway
Distribution: Mandriva 2007.1 powerpack
Posts: 47

Rep: Reputation: 15
Most times when missing dependencies, you can find them in mandriva controle center. Try searching for them.
 
Old 02-11-2006, 09:23 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Thanks a million for ur help with that reddaz.
You're welcome.
 
  


Reply



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
Major problems installing tar.gz files Nitro Boy Linux - Newbie 9 07-21-2005 10:01 PM
Problems installing from RPMS and BINs dannysalerno Linux - Software 10 05-14-2005 02:43 AM
Problems installing RPMs spitfire999 Linux - Newbie 9 05-05-2005 02:13 PM
If you're having problems regarding stability, compiling source,or RPMS read This! Eagle_Y Mandriva 0 05-28-2004 04:26 PM
Major problems installing RedHat G-wizz Linux - Newbie 8 05-02-2004 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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